]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
s12z and h8300 no-print-map-discarded fails
authorAlan Modra <amodra@gmail.com>
Fri, 19 Apr 2019 03:03:46 +0000 (12:33 +0930)
committerAlan Modra <amodra@gmail.com>
Fri, 19 Apr 2019 03:11:58 +0000 (12:41 +0930)
This tidies the remaining --no-print-map-discarded fails.  h8300-elf
warns on a section without flags, and s12z doesn't support
--gc-sections.

bfd/
* elf32-s12z.c (elf_backend_can_gc_sections): Don't define
ld/
* testsuite/ld-gc/skip-map-discarded.s: Add section attributes.
* testsuite/lib/ld-lib.exp (check_gc_sections_available): Add
s12z to list of targets not supporting --gc-sections.

bfd/ChangeLog
bfd/elf32-s12z.c
ld/ChangeLog
ld/testsuite/ld-gc/skip-map-discarded.s
ld/testsuite/lib/ld-lib.exp

index e61981f86b06d60fe3ad3ea8e076d1b5cacb385c..e7dd8121f6fd94bca7215a2bea742e92e526919c 100644 (file)
@@ -1,3 +1,7 @@
+2019-04-19  Alan Modra  <amodra@gmail.com>
+
+       * elf32-s12z.c (elf_backend_can_gc_sections): Don't define
+
 2019-04-17  H.J. Lu  <hongjiu.lu@intel.com>
 
        * elf64-x86-64.c (elf_x86_64_need_pic): Suggest -fPIE when not
index a8f9b4aae1c7f828a2292b901285e6d3cfea79ae..60f163b9f3307313bc42ddaf59f193ccfff2a158 100644 (file)
@@ -318,6 +318,5 @@ s12z_elf_set_mach_from_flags (bfd *abfd)
 #define elf_info_to_howto_rel                  s12z_info_to_howto_rel
 #define elf_backend_object_p                   s12z_elf_set_mach_from_flags
 #define elf_backend_final_write_processing     NULL
-#define elf_backend_can_gc_sections            1
 
 #include "elf32-target.h"
index c1632c292e44f7422706be058a45e3d131df44db..163fa842d49f5ac9c47e43f41789077b80c7a7db 100644 (file)
@@ -1,3 +1,9 @@
+2019-04-19  Alan Modra  <amodra@gmail.com>
+
+       * testsuite/ld-gc/skip-map-discarded.s: Add section attributes.
+       * testsuite/lib/ld-lib.exp (check_gc_sections_available): Add
+       s12z to list of targets not supporting --gc-sections.
+
 2019-04-17  H.J. Lu  <hongjiu.lu@intel.com>
 
        * testsuite/ld-i386/i386.exp: Run pr18801a and pr18801b instead
index 630aab0d9ce074e973b30276dc3c7863c0a37e25..be2de6084a68c95938896e34762c05975f5db169 100644 (file)
@@ -1,5 +1,6 @@
-.globl __start
+       .globl  __start
 __start:
-       .section        _foo
+
+       .section _foo,"ax",%progbits
 foo:
        .long   1
index dae6673758d1de0f178a6d75a0381ea2bedfefaa..dc55dc803439d6742e0441458b509eaf5a13512c 100644 (file)
@@ -1043,6 +1043,7 @@ proc check_gc_sections_available { } {
            || [istarget mn10200-*-*]
            || [istarget pj*-*-*]
            || [istarget pru*-*-*]
+           || [istarget s12z-*-*]
            || [istarget xgate-*-*] } {
            set gc_sections_available_saved 0
            return 0