From fce9773608d45757dfb26ef7783f37d432ae9a88 Mon Sep 17 00:00:00 2001 From: Alan Modra Date: Fri, 19 Apr 2019 12:33:46 +0930 Subject: s12z and h8300 no-print-map-discarded fails 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. --- ld/ChangeLog | 6 ++++++ ld/testsuite/ld-gc/skip-map-discarded.s | 5 +++-- ld/testsuite/lib/ld-lib.exp | 1 + 3 files changed, 10 insertions(+), 2 deletions(-) (limited to 'ld') diff --git a/ld/ChangeLog b/ld/ChangeLog index c1632c2..163fa84 100644 --- a/ld/ChangeLog +++ b/ld/ChangeLog @@ -1,3 +1,9 @@ +2019-04-19 Alan Modra + + * 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 * testsuite/ld-i386/i386.exp: Run pr18801a and pr18801b instead diff --git a/ld/testsuite/ld-gc/skip-map-discarded.s b/ld/testsuite/ld-gc/skip-map-discarded.s index 630aab0..be2de60 100644 --- a/ld/testsuite/ld-gc/skip-map-discarded.s +++ b/ld/testsuite/ld-gc/skip-map-discarded.s @@ -1,5 +1,6 @@ -.globl __start + .globl __start __start: - .section _foo + + .section _foo,"ax",%progbits foo: .long 1 diff --git a/ld/testsuite/lib/ld-lib.exp b/ld/testsuite/lib/ld-lib.exp index dae6673..dc55dc8 100644 --- a/ld/testsuite/lib/ld-lib.exp +++ b/ld/testsuite/lib/ld-lib.exp @@ -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 -- cgit v1.1