aboutsummaryrefslogtreecommitdiff
path: root/bfd
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2019-04-19 12:33:46 +0930
committerAlan Modra <amodra@gmail.com>2019-04-19 12:41:58 +0930
commitfce9773608d45757dfb26ef7783f37d432ae9a88 (patch)
treeeb6aad9d2511fcf93ba55288468243aeae8081c3 /bfd
parente7da54fcdbea8e60c8e577b32b6ed63f8effbfd6 (diff)
downloadgdb-fce9773608d45757dfb26ef7783f37d432ae9a88.zip
gdb-fce9773608d45757dfb26ef7783f37d432ae9a88.tar.gz
gdb-fce9773608d45757dfb26ef7783f37d432ae9a88.tar.bz2
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.
Diffstat (limited to 'bfd')
-rw-r--r--bfd/ChangeLog4
-rw-r--r--bfd/elf32-s12z.c1
2 files changed, 4 insertions, 1 deletions
diff --git a/bfd/ChangeLog b/bfd/ChangeLog
index e61981f..e7dd812 100644
--- a/bfd/ChangeLog
+++ b/bfd/ChangeLog
@@ -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
diff --git a/bfd/elf32-s12z.c b/bfd/elf32-s12z.c
index a8f9b4a..60f163b 100644
--- a/bfd/elf32-s12z.c
+++ b/bfd/elf32-s12z.c
@@ -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"