Set non_ir_ref if a symbol is referenced by a non-shared object
authorH.J. Lu <hjl.tools@gmail.com>
Sat, 30 Mar 2013 00:38:39 +0000 (00:38 +0000)
committerH.J. Lu <hjl.tools@gmail.com>
Sat, 30 Mar 2013 00:38:39 +0000 (00:38 +0000)
commit61315175ad029ee37a415cb1becd0bfecd44c430
treef4c10230237bb2a6786c1dcc5d2159ee382e40a5
parentab047a1e0993f63bc3b899ab7efcbd3ac76646ae
Set non_ir_ref if a symbol is referenced by a non-shared object

bfd/

PR ld/15323
* elf32-i386.c (elf_i386_check_relocs): Set non_ir_ref if a
symbol is referenced by a non-shared object.
* elf64-x86-64.c (elf_x86_64_check_relocs): Likewise.

ld/testsuite/

PR ld/15323
* ld-plugin/lto.exp (lto_link_tests): Add pr15323a-r.o.
(lto_run_tests): Add a test for PR ld/15323.

* ld-plugin/pr15323.out: New file.
* ld-plugin/pr15323a.c: Likewise.
* ld-plugin/pr15323b.c: Likewise.
bfd/ChangeLog
bfd/elf32-i386.c
bfd/elf64-x86-64.c
ld/testsuite/ChangeLog
ld/testsuite/ld-plugin/lto.exp
ld/testsuite/ld-plugin/pr15323.out [new file with mode: 0644]
ld/testsuite/ld-plugin/pr15323a.c [new file with mode: 0644]
ld/testsuite/ld-plugin/pr15323b.c [new file with mode: 0644]