aboutsummaryrefslogtreecommitdiff
path: root/ld/testsuite/ld-elf
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2019-03-19 15:41:58 +1030
committerAlan Modra <amodra@gmail.com>2019-03-21 08:45:28 +1030
commit3b6c19668236e6fd60c6299e7d016396d645fa61 (patch)
tree10351b343cb836f18d3705f7c40a64ceb321db7f /ld/testsuite/ld-elf
parentacde6c6b431a8c38ab18a47bb56f65f515448195 (diff)
downloadgdb-3b6c19668236e6fd60c6299e7d016396d645fa61.zip
gdb-3b6c19668236e6fd60c6299e7d016396d645fa61.tar.gz
gdb-3b6c19668236e6fd60c6299e7d016396d645fa61.tar.bz2
Fix some dlx fails
Generic linker ELF targets using CREATE_OBJECT_SYMBOLS in their scripts run into a problem. The file symbols are created by _bfd_generic_link_output_symbols in each object file, in the section corresponding to the CREATE_OBJECT_SYMBOLS section, typically .text. If it so happens that the output .text section is stripped due to being empty, then elf.c:assign_section_numbers won't assign an ELF section number and swap_out_syms will report "unable to find equivalent output section" for the object symbols. Fix this by always keeping an output section with CREATE_OBJECT_SYMBOLS. * ldlang.c (lang_size_sections_1): Set SEC_KEEP on create_object_symbols_section. * testsuite/ld-elf/pr22319.d: Don't xfail dlx.
Diffstat (limited to 'ld/testsuite/ld-elf')
-rw-r--r--ld/testsuite/ld-elf/pr22319.d2
1 files changed, 0 insertions, 2 deletions
diff --git a/ld/testsuite/ld-elf/pr22319.d b/ld/testsuite/ld-elf/pr22319.d
index 8ad2f3e..f5413f0 100644
--- a/ld/testsuite/ld-elf/pr22319.d
+++ b/ld/testsuite/ld-elf/pr22319.d
@@ -1,8 +1,6 @@
#name: PR 22319 - required undefined symbols in output
#ld: -u undefined_symbol -e 0
#nm: -u
-#xfail: dlx-*-*
-# The DLX target fails because it needs a special linker script to handle file symbols.
[ ]+U+[ ]+undefined_symbol
#pass