[PATCH] Enable --build-id for moxie-elf-ld
Anthony Green
green@moxielogic.com
Wed Dec 18 19:53:00 GMT 2019
I'm pushing the attached patch in order to enable --build-id for
moxie-elf-ld.
ld/
2019-12-18 Anthony Green <green@moxielogic.com>
* emulparams/elf32moxie.sh (TEMPLATE_NAME): Switch to elf template
to enable --build-id.
* configure.tgt: Don't define targ_extra_ofiles for moxie-*-*.
diff --git a/ld/configure.tgt b/ld/configure.tgt
index 1e90d883ef..926733e6e2 100644
--- a/ld/configure.tgt
+++ b/ld/configure.tgt
@@ -591,7 +591,6 @@ moxie-*-moxiebox*) targ_emul=moxiebox
targ_extra_ofiles=ldelfgen.o
;;
moxie-*-*) targ_emul=elf32moxie
- targ_extra_ofiles=ldelfgen.o
;;
msp430-*-*) targ_emul=msp430elf
targ_extra_emuls="msp430X"
diff --git a/ld/emulparams/elf32moxie.sh b/ld/emulparams/elf32moxie.sh
index cfa261dab2..5ce3819f0c 100644
--- a/ld/emulparams/elf32moxie.sh
+++ b/ld/emulparams/elf32moxie.sh
@@ -1,6 +1,5 @@
SCRIPT_NAME=elf
-TEMPLATE_NAME=generic
-EXTRA_EM_FILE=genelf
+TEMPLATE_NAME=elf
OUTPUT_FORMAT="elf32-bigmoxie"
BIG_OUTPUT_FORMAT="elf32-bigmoxie"
LITTLE_OUTPUT_FORMAT="elf32-littlemoxie"
More information about the Binutils
mailing list