This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
[PATCH] Enable --build-id for moxie-elf-ld
- From: Anthony Green <green at moxielogic dot com>
- To: binutils at sourceware dot org
- Date: Wed, 18 Dec 2019 14:53:18 -0500
- Subject: [PATCH] Enable --build-id for moxie-elf-ld
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"