diff options
author | Alan Modra <amodra@gmail.com> | 2020-07-20 13:32:34 +0930 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2020-07-20 22:21:11 +0930 |
commit | 2f5541f384babda4aef3d6c8011a6d15af78e0a3 (patch) | |
tree | 77de27fb62718a1cdcff15552aaee892704d6c7b /ld/testsuite/ld-gc | |
parent | b243ba58e833dbb03f3746c0146f1450822c5d05 (diff) | |
download | gdb-2f5541f384babda4aef3d6c8011a6d15af78e0a3.zip gdb-2f5541f384babda4aef3d6c8011a6d15af78e0a3.tar.gz gdb-2f5541f384babda4aef3d6c8011a6d15af78e0a3.tar.bz2 |
PR26265, Spurious 'gc-sections requires ... when --init or --fini
bfd/
* elflink.c (_bfd_elf_gc_keep): Use bfd_is_const_section.
ld/
PR 26265
* ldlang.c (undef_from_cmdline): Delete.
(ldlang_add_undef): Mark "cmdline" param unused.
(lang_end): Traverse gc_sym_list to determine whether a symbol root
has been specified. Update error message.
* testsuite/ld-gc/noent.d: Adjust for changed error message.
Diffstat (limited to 'ld/testsuite/ld-gc')
-rw-r--r-- | ld/testsuite/ld-gc/noent.d | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ld/testsuite/ld-gc/noent.d b/ld/testsuite/ld-gc/noent.d index 1741a74..4980822 100644 --- a/ld/testsuite/ld-gc/noent.d +++ b/ld/testsuite/ld-gc/noent.d @@ -1,3 +1,3 @@ # name: --gc-sections -r without -e # ld: --gc-sections -r -# error: gc-sections requires either an entry or an undefined symbol +# error: --gc-sections requires .* |