diff options
author | Alan Modra <amodra@gmail.com> | 2015-02-18 17:02:39 +1030 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2015-02-19 13:36:34 +1030 |
commit | d983c8c5503d680c6d4955ceb610a9beebc64460 (patch) | |
tree | 328f5687e73b6db52f604b3596c0b1cc03fd515a /ld/testsuite/ld-x86-64 | |
parent | 8545136955641adbf35e121fbbfc8cd5fd06e4a7 (diff) | |
download | binutils-gdb-d983c8c5503d680c6d4955ceb610a9beebc64460.tar.gz |
Strip undefined symbols from .symtab
bfd/
PR ld/4317
* elflink.c (elf_link_input_bfd): Drop undefined local syms.
(elf_link_output_extsym): Drop local and global undefined syms.
Tidy. Expand comment.
ld/testsuite/
PR ld/4317
* ld-aarch64/gc-tls-relocs.d, * ld-cris/locref2.d,
* ld-elf/ehdr_start-weak.d, * ld-elf/group1.d,
* ld-i386/compressed1.d, * ld-ia64/error1.d, * ld-ia64/error2.d,
* ld-ia64/error3.d, * ld-mips-elf/pic-and-nonpic-1.nd,
* ld-mmix/undef-3.d, * ld-powerpc/tlsexe.r, * ld-powerpc/tlsexetoc.r,
* ld-powerpc/tlsso.r, * ld-powerpc/tlstocso.r,
* ld-x86-64/compressed1.d, * ld-x86-64/pie1.d: Update.
Diffstat (limited to 'ld/testsuite/ld-x86-64')
-rw-r--r-- | ld/testsuite/ld-x86-64/compressed1.d | 5 | ||||
-rw-r--r-- | ld/testsuite/ld-x86-64/pie1.d | 5 |
2 files changed, 0 insertions, 10 deletions
diff --git a/ld/testsuite/ld-x86-64/compressed1.d b/ld/testsuite/ld-x86-64/compressed1.d index 1dd0f4cf6c7..9e9d92cea2c 100644 --- a/ld/testsuite/ld-x86-64/compressed1.d +++ b/ld/testsuite/ld-x86-64/compressed1.d @@ -2,8 +2,3 @@ #as: --64 #ld: -e foo -melf_x86_64 --noinhibit-exec #warning: .*/compressed1.c:13: undefined reference to .bar. -#nm: -n - -#... -[ \t]+U bar -#pass diff --git a/ld/testsuite/ld-x86-64/pie1.d b/ld/testsuite/ld-x86-64/pie1.d index 06d2562b804..368d1538f41 100644 --- a/ld/testsuite/ld-x86-64/pie1.d +++ b/ld/testsuite/ld-x86-64/pie1.d @@ -1,9 +1,4 @@ #name: PIE with undefined symbol #as: --64 #ld: -pie -melf_x86_64 --noinhibit-exec -#readelf: -s --wide #warning: \A[^\n]*\.o[^\n]*In function `_start':\n[^\n]*: undefined reference to `foo'\Z - -#... - +[0-9]+: +[0-9a-f]+ +0 +NOTYPE +GLOBAL +DEFAULT +UND foo -#pass |