Fix PR ld/11138
authorH.J. Lu <hjl.tools@gmail.com>
Fri, 8 Jan 2010 03:03:16 +0000 (03:03 +0000)
committerH.J. Lu <hjl.tools@gmail.com>
Fri, 8 Jan 2010 03:03:16 +0000 (03:03 +0000)
commitd023c380db01abd7f6f2a53edecca09488b53982
treedc372f631a948d1fd15c1a9d7518befe5ec4a316
parentbde6f3eb6dff94cea1d471e15c6154d55d49820f
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