s12z genelf.em
authorAlan Modra <amodra@gmail.com>
Wed, 29 May 2019 13:26:30 +0000 (22:56 +0930)
committerAlan Modra <amodra@gmail.com>
Wed, 29 May 2019 15:31:42 +0000 (01:01 +0930)
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.

binutils/ChangeLog
binutils/testsuite/lib/binutils-common.exp
ld/ChangeLog
ld/emulparams/m9s12zelf.sh
ld/testsuite/lib/ld-lib.exp

index 7f43a8965354aad54f810a46f4b0b613e085f3db..76d9d529d8b90f71e1b404118e5dbf9377ad8d3b 100644 (file)
@@ -1,3 +1,8 @@
+2019-05-30  Alan Modra  <amodra@gmail.com>
+
+       * testsuite/lib/binutils-common.exp (supports_gnu_unique): Add
+       s12z to targets not supporting this feature.
+
 2019-05-30  Alan Modra  <amodra@gmail.com>
 
        * testsuite/lib/binutils-common.exp (run_dump_test): Support
index 9511d28c6ff191a59a74b97da0fcecca6e0b0141..a523f4b7813211c97647f0ba4eb07bb227a3e39f 100644 (file)
@@ -183,9 +183,9 @@ proc match_target { target } {
 # and Visium targets set OSABI to ELFOSABI_STANDALONE and cannot
 # support STB_GNU_UNIQUE.  Likewise non-EABI ARM targets set OSABI to
 # ELFOSABI_ARM, and TI C6X targets to ELFOSABI_C6000_*.  Finally
-# rather than `bfd_elf_final_link' AM33/2.0, D30V, DLX, and
-# picoJava targets use `_bfd_generic_final_link', which does not
-# support STB_GNU_UNIQUE symbol binding causing assertion failures.
+# rather than `bfd_elf_final_link' a number of targets use
+# `_bfd_generic_final_link', which does not support STB_GNU_UNIQUE
+# symbol binding causing assertion failures.
 #
 proc supports_gnu_unique {} {
     if { [istarget *-*-gnu*]
@@ -212,6 +212,7 @@ proc supports_gnu_unique {} {
         || [istarget "d30v-*-*"]
         || [istarget "dlx-*-*"]
         || [istarget "pj*-*-*"]
+        || [istarget "s12z-*-*"]
         || [istarget "xgate-*-*"] } {
        return 0
     }
index 586f4b1a5a8a1e187e871f2a2663b1f750e3f214..f0f71784e084c1d85ca8c6e6c576d11068a35341 100644 (file)
@@ -1,3 +1,10 @@
+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
index 7a819e8409492fd54d9a2a54d71a46cc3321eec6..758c8e936b166ecab09f57bf30d4506f3fbe12eb 100644 (file)
@@ -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
 
index f4d6707de93c7eb0bc2eb2621f8f63c3dc88b7ec..250493608257967d97dd313fe8dc83656544f5cf 100644 (file)
@@ -1113,6 +1113,7 @@ proc uses_genelf { } {
         || [istarget "msp430-*-*"]
         || [istarget "mt-*-*"]
         || [istarget "pj*-*-*"]
+        || [istarget "s12z-*-*"]
         || [istarget "xgate-*-*"] } {
        return 1
     }
This page took 0.028194 seconds and 4 git commands to generate.