aboutsummaryrefslogtreecommitdiff
path: root/ld
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2019-05-29 22:56:30 +0930
committerAlan Modra <amodra@gmail.com>2019-05-30 01:01:42 +0930
commit6ff185b89017b16e9092142515f0a119b684ac72 (patch)
tree84454f55f3d02befd60e7b34311d9bf22f6089c1 /ld
parent1336939d3cd4cb02670c48ef065bafdf0fdae300 (diff)
downloadgdb-6ff185b89017b16e9092142515f0a119b684ac72.zip
gdb-6ff185b89017b16e9092142515f0a119b684ac72.tar.gz
gdb-6ff185b89017b16e9092142515f0a119b684ac72.tar.bz2
s12z genelf.em
This changes s12z to use generic.em and genelf.em, which is more suited to targets that use the generic linker hash table. A tweak or two to some testsuite predicates then gives a clean testsuite result on the target. PR 24596 binutils/ * testsuite/lib/binutils-common.exp (supports_gnu_unique): Add s12z to targets not supporting this feature. ld/ * emulparams/m9s12zelf.sh (TEMPLATE_NAME): Set to generic. (EXTRA_EM_FILE): Define to genelf. * testsuite/lib/ld-lib.exp (uses_genelf): Add s12z.
Diffstat (limited to 'ld')
-rw-r--r--ld/ChangeLog7
-rw-r--r--ld/emulparams/m9s12zelf.sh3
-rw-r--r--ld/testsuite/lib/ld-lib.exp1
3 files changed, 10 insertions, 1 deletions
diff --git a/ld/ChangeLog b/ld/ChangeLog
index 586f4b1..f0f7178 100644
--- a/ld/ChangeLog
+++ b/ld/ChangeLog
@@ -1,5 +1,12 @@
2019-05-30 Alan Modra <amodra@gmail.com>
+ PR 24596
+ * emulparams/m9s12zelf.sh (TEMPLATE_NAME): Set to generic.
+ (EXTRA_EM_FILE): Define to genelf.
+ * testsuite/lib/ld-lib.exp (uses_genelf): Add s12z.
+
+2019-05-30 Alan Modra <amodra@gmail.com>
+
* testsuite/lib/ld-lib.exp (run_ld_link_tests): Support procedure
calls in optional "xfail" args.
(run_ld_link_exec_tests): Likewise.
diff --git a/ld/emulparams/m9s12zelf.sh b/ld/emulparams/m9s12zelf.sh
index 7a819e8..758c8e9 100644
--- a/ld/emulparams/m9s12zelf.sh
+++ b/ld/emulparams/m9s12zelf.sh
@@ -13,6 +13,7 @@ EEPROM_MEMORY=eeprom
ARCH=s12z
EMBEDDED=yes
GENERIC_BOARD=no
-TEMPLATE_NAME=elf32
+TEMPLATE_NAME=generic
+EXTRA_EM_FILE=genelf
NOP=0x00
diff --git a/ld/testsuite/lib/ld-lib.exp b/ld/testsuite/lib/ld-lib.exp
index f4d6707..2504936 100644
--- a/ld/testsuite/lib/ld-lib.exp
+++ b/ld/testsuite/lib/ld-lib.exp
@@ -1113,6 +1113,7 @@ proc uses_genelf { } {
|| [istarget "msp430-*-*"]
|| [istarget "mt-*-*"]
|| [istarget "pj*-*-*"]
+ || [istarget "s12z-*-*"]
|| [istarget "xgate-*-*"] } {
return 1
}