Don't re-export common symbols
authorH.J. Lu <hjl.tools@gmail.com>
Mon, 5 Oct 2015 21:45:17 +0000 (14:45 -0700)
committerH.J. Lu <hjl.tools@gmail.com>
Mon, 5 Oct 2015 21:45:17 +0000 (14:45 -0700)
commita0d49154d4a471cd36954408b29a348a091efaa3
treeb4df8acaf073d72072c11cea50e1f9d6d60430dc
parente753e154bf8a1f507b43e03dec04b341dde3f429
Don't re-export common symbols

For ELF linker, a common symbol isn't a definition.  When we decide if a
symbol should be re-exported, we should check if the symbol isn't
undefined, not if it is a definition.

bfd/

PR ld/18914
* elflink.c (elf_link_add_object_symbols): Don't re-export a
symbol if it isn't undefined.

ld/testsuite/

PR ld/18914
* ld-elf/exclude.exp: Also check exclude_common.
* ld-elf/exclude2.s: Add exclude_common.
bfd/ChangeLog
bfd/elflink.c
ld/testsuite/ChangeLog
ld/testsuite/ld-elf/exclude.exp
ld/testsuite/ld-elf/exclude2.s
This page took 0.029071 seconds and 4 git commands to generate.