mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-08-26 07:19:16 +08:00
LoongArch: include: Add support for linker relaxation.
Add relocs and gas LARCH_opts.relax option. include/ChangeLog: * elf/loongarch.h: Add relocs. * opcode/loongarch.h: Add LARCH_opts.relax and macro LARCH_NOP.
This commit is contained in:

committed by
liuzhensong

parent
7b9e7db083
commit
57a930e3bf
@ -28,6 +28,8 @@ extern "C"
|
||||
{
|
||||
#endif
|
||||
|
||||
#define LARCH_NOP 0x03400000
|
||||
|
||||
typedef uint32_t insn_t;
|
||||
|
||||
struct loongarch_opcode
|
||||
@ -228,6 +230,7 @@ dec2 : [1-9][0-9]?
|
||||
#define ase_gpcr isa.use_la_global_with_pcrel
|
||||
#define ase_gabs isa.use_la_global_with_abs
|
||||
|
||||
int relax;
|
||||
} LARCH_opts;
|
||||
|
||||
extern size_t loongarch_insn_length (insn_t insn);
|
||||
|
Reference in New Issue
Block a user