mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-26 22:07:58 +08:00
gas:LoongArch: Fix "make check" pr21884 fail in LoongArch32.
gas/config/ * tc-loongarch.c: Add function to select target mach. * tc-loongarch.h: Define macro TARGET_MACH.
This commit is contained in:
@ -354,6 +354,12 @@ md_begin ()
|
|||||||
assert (8 <= sizeof (offsetT));
|
assert (8 <= sizeof (offsetT));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
unsigned long
|
||||||
|
loongarch_mach (void)
|
||||||
|
{
|
||||||
|
return LARCH_opts.ase_lp64 ? bfd_mach_loongarch64 : bfd_mach_loongarch32;
|
||||||
|
}
|
||||||
|
|
||||||
static const expressionS const_0 = { .X_op = O_constant, .X_add_number = 0 };
|
static const expressionS const_0 = { .X_op = O_constant, .X_add_number = 0 };
|
||||||
|
|
||||||
static const char *
|
static const char *
|
||||||
|
@ -24,6 +24,9 @@
|
|||||||
#define TARGET_BYTES_BIG_ENDIAN 0
|
#define TARGET_BYTES_BIG_ENDIAN 0
|
||||||
#define TARGET_ARCH bfd_arch_loongarch
|
#define TARGET_ARCH bfd_arch_loongarch
|
||||||
|
|
||||||
|
#define TARGET_MACH (loongarch_mach ())
|
||||||
|
extern unsigned long loongarch_mach (void);
|
||||||
|
|
||||||
#define WORKING_DOT_WORD 1
|
#define WORKING_DOT_WORD 1
|
||||||
#define REPEAT_CONS_EXPRESSIONS
|
#define REPEAT_CONS_EXPRESSIONS
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user