m68hc1* fixes
authorAlan Modra <amodra@gmail.com>
Mon, 9 Jul 2018 02:39:59 +0000 (12:09 +0930)
committerAlan Modra <amodra@gmail.com>
Mon, 9 Jul 2018 07:57:35 +0000 (17:27 +0930)
With config.sub now properly returning m68hc12-unknown-elf rather than
m68hc12-unknown-none, more ELF tests run.  This patch enables
STB_GNU_UNIQUE processing fixing some testsuite failures that probably
no m68hc12 user cares about, and removes some XPASSes.

bfd/
* elf32-m68hc1x.c (elf32_m68hc11_post_process_headers): Call
_bfd_elf_post_process_headers.
ld/
* testsuite/ld-discard/extern.d: Remove m68hc12 xfail.
* testsuite/ld-discard/start.d: Likewise.
* testsuite/ld-discard/static.d: Likewise.

bfd/ChangeLog
bfd/elf32-m68hc1x.c
ld/ChangeLog
ld/testsuite/ld-discard/extern.d
ld/testsuite/ld-discard/start.d
ld/testsuite/ld-discard/static.d

index 812b8bc6d51e5c96751124051dac9861f71a0210..9a918bd4d5f1ca053edbdd08d59ebfbe1a8c9c30 100644 (file)
@@ -1,3 +1,8 @@
+2018-07-09  Alan Modra  <amodra@gmail.com>
+
+       * elf32-m68hc1x.c (elf32_m68hc11_post_process_headers): Call
+       _bfd_elf_post_process_headers.
+
 2018-07-06  Max Filippov  <jcmvbkbc@gmail.com>
 
        * elf32-xtensa.c (elf_xtensa_allocate_dynrelocs): Don't allocate
index 35152ee1c7be3f8594769209de9b89526d760995..d411bd076d494081e41b02d10e74c12b5ed1dca0 100644 (file)
@@ -1456,6 +1456,8 @@ elf32_m68hc11_post_process_headers (bfd *abfd, struct bfd_link_info *link_info)
   struct m68hc11_scan_param param;
   struct m68hc11_elf_link_hash_table *htab;
 
+  _bfd_elf_post_process_headers (abfd, link_info);
+
   if (link_info == NULL)
     return;
 
index 2d748f1a643ea4826c67b1d1562ad399c1018cf8..fe9724bd6c7def345b6579a21964cd37472a49e7 100644 (file)
@@ -1,3 +1,9 @@
+2018-07-09  Alan Modra  <amodra@gmail.com>
+
+       * testsuite/ld-discard/extern.d: Remove m68hc12 xfail.
+       * testsuite/ld-discard/start.d: Likewise.
+       * testsuite/ld-discard/static.d: Likewise.
+
 2018-07-09  Christophe Lyon  <christophe.lyon@linaro.org>
 
        * emultempl/armelf.em (gld${EMULATION_NAME}_finish): Use the right
index 50112e45e72f8fd8786763d7a4183033e0fff06a..a8d91fb87272ff14cc96c13af517e93d766e3f51 100644 (file)
@@ -3,7 +3,6 @@
 #error: .*data.* referenced in section `\.text' of tmpdir/extern.o: defined in discarded section `\.data\.exit' of tmpdir/extern.o
 #objdump: -p
 #xfail: d30v-*-* dlx-*-* pj*-*-*
-#xfail: m68hc12-*-* m6812-*-*
 #pass
 # The expected warning used to start with "`data' referenced..." but
 # this has two problems: 1) It does not include the name of the linker
index e8ce59d62c8c67e0ac8e018ecf127dc8ece2f149..fcb4e8fee095c2ee215035e18031c5b030da318a 100644 (file)
@@ -4,5 +4,4 @@
 #error: `data' referenced in section `\.text' of tmpdir/start.o: defined in discarded section `\.data\.exit' of tmpdir/exit.o
 #objdump: -p
 #xfail: d30v-*-* dlx-*-* pj*-*-*
-#xfail: m68hc12-*-* m6812-*-*
 #pass
index ebdbda840ebd15fcecb88f6666d4f47be20ad69f..c80fcde087ddb38594246bb7fec09233f9272aeb 100644 (file)
@@ -3,5 +3,4 @@
 #error: `(\.data\.exit|data)' referenced in section `\.text' of tmpdir/static.o: defined in discarded section `\.data\.exit' of tmpdir/static.o
 #objdump: -p
 #xfail: d30v-*-* dlx-*-* pj*-*-*
-#xfail: m68hc12-*-* m6812-*-* 
 #pass