mirror of
https://github.com/bminor/binutils-gdb.git
synced 2026-02-04 05:21:30 +00:00
loongarch: add back support for object attributes v1
A previous commit [1] mistakenly removed support for Object Attributes
for LoongArch targets.
This patch adds back the OA feature into Gas for the LoongArch targets
following the new approach which consists in:
- defining TC_OBJ_ATTR to 1 in tc-loongarch.h
- enabling the compilation of obj-elf-attr.c in gas/configure.ac
[1]: 28a51085ae
This commit is contained in:
@@ -149,4 +149,7 @@ struct reloc_info
|
||||
#define md_finish loongarch_md_finish
|
||||
extern void loongarch_md_finish (void);
|
||||
|
||||
/* The target supports Object Attributes. */
|
||||
#define TC_OBJ_ATTR 1
|
||||
|
||||
#endif
|
||||
|
||||
2
gas/configure
vendored
2
gas/configure
vendored
@@ -12701,7 +12701,7 @@ _ACEOF
|
||||
|
||||
# Does the target support Object Attributes ?
|
||||
case ${cpu_type} in
|
||||
arc* | arm* | csky | m68k | mips* | msp430 | ppc* \
|
||||
arc* | arm* | csky | loongarch | m68k | mips* | msp430 | ppc* \
|
||||
| riscv* | s390* | sparc* | tic6x)
|
||||
for f in config/obj-elf-attr.o; do
|
||||
case " $extra_objects " in
|
||||
|
||||
@@ -434,7 +434,7 @@ changequote([,])dnl
|
||||
|
||||
# Does the target support Object Attributes ?
|
||||
case ${cpu_type} in
|
||||
arc* | arm* | csky | m68k | mips* | msp430 | ppc* \
|
||||
arc* | arm* | csky | loongarch | m68k | mips* | msp430 | ppc* \
|
||||
| riscv* | s390* | sparc* | tic6x)
|
||||
for f in config/obj-elf-attr.o; do
|
||||
case " $extra_objects " in
|
||||
|
||||
Reference in New Issue
Block a user