Fix PR ld/11138
commit6963b41523a1042367485dd05b7f1af995506280
authorH.J. Lu <hjl.tools@gmail.com>
Fri, 8 Jan 2010 03:03:15 +0000 (8 03:03 +0000)
committerH.J. Lu <hjl.tools@gmail.com>
Fri, 8 Jan 2010 03:03:15 +0000 (8 03:03 +0000)
tree16efa1dcb0c7ab73576b98bb3d1761622909edcd
parent6bf43254b9653f4d9b93506b651b89686772f34e
Fix PR ld/11138

bfd/

2010-01-07  H.J. Lu  <hongjiu.lu@intel.com>

PR ld/11138
* elflink.c (elf_link_check_versioned_symbol): Don't abort if
a symbol referenced by DSO is is defined in a non-shared object
and forced local.

ld/testsuite/

2010-01-07  H.J. Lu  <hongjiu.lu@intel.com>

PR ld/11138
* ld-elf/pr11138-1.c: New.
* ld-elf/pr11138-1.map: Likewise.
* ld-elf/pr11138-2.c: Likewise.
* ld-elf/pr11138-2.map: Likewise.
* ld-elf/pr11138.out: Likewise.

* ld-elf/shared.exp (build_tests): Add libpr11138-1.so and
libpr11138-2.o.
(run_tests): Add 2 tests for PR ld/11138.
bfd/ChangeLog
bfd/elflink.c
ld/testsuite/ChangeLog
ld/testsuite/ld-elf/pr11138-1.c [new file with mode: 0644]
ld/testsuite/ld-elf/pr11138-1.map [new file with mode: 0644]
ld/testsuite/ld-elf/pr11138-2.c [new file with mode: 0644]
ld/testsuite/ld-elf/pr11138-2.map [new file with mode: 0644]
ld/testsuite/ld-elf/pr11138.out [new file with mode: 0644]
ld/testsuite/ld-elf/shared.exp