Strip undefined symbols from .symtab
authorAlan Modra <amodra@gmail.com>
Wed, 18 Feb 2015 06:32:39 +0000 (17:02 +1030)
committerAlan Modra <amodra@gmail.com>
Thu, 19 Feb 2015 03:06:34 +0000 (13:36 +1030)
commitd983c8c5503d680c6d4955ceb610a9beebc64460
tree328f5687e73b6db52f604b3596c0b1cc03fd515a
parent8545136955641adbf35e121fbbfc8cd5fd06e4a7
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.
19 files changed:
bfd/ChangeLog
bfd/elflink.c
ld/testsuite/ChangeLog
ld/testsuite/ld-aarch64/gc-tls-relocs.d
ld/testsuite/ld-cris/locref2.d
ld/testsuite/ld-elf/ehdr_start-weak.d
ld/testsuite/ld-elf/group1.d
ld/testsuite/ld-i386/compressed1.d
ld/testsuite/ld-ia64/error1.d
ld/testsuite/ld-ia64/error2.d
ld/testsuite/ld-ia64/error3.d
ld/testsuite/ld-mips-elf/pic-and-nonpic-1.nd
ld/testsuite/ld-mmix/undef-3.d
ld/testsuite/ld-powerpc/tlsexe.r
ld/testsuite/ld-powerpc/tlsexetoc.r
ld/testsuite/ld-powerpc/tlsso.r
ld/testsuite/ld-powerpc/tlstocso.r
ld/testsuite/ld-x86-64/compressed1.d
ld/testsuite/ld-x86-64/pie1.d