PR ld/20276: Set non_ir_ref on common symbol
authorAlan Modra <amodra@gmail.com>
Mon, 20 Jun 2016 00:23:50 +0000 (09:53 +0930)
committerAlan Modra <amodra@gmail.com>
Mon, 20 Jun 2016 01:56:13 +0000 (11:26 +0930)
commit0616a2803812f5c13f8936d281bd71c3d9c09655
tree9e08397ff38e47df39dccd4dbc7ac0d418d02bbd
parent6336b4b7370b8034091364f500184c0a8674a340
PR ld/20276: Set non_ir_ref on common symbol

Also, don't check alignment on symbol from plugin dummy input.

bfd/
PR ld/20276
* elflink.c (elf_link_add_object_symbols): Don't check alignment
on symbol from plugin dummy input.
ld/
PR ld/20276
* plugin.c (plugin_notice): Set non_ir_ref on common symbols.
* testsuite/ld-plugin/lto.exp (lto_link_tests): Add test for
PR ld/20276.
(lto_run_tests): Likewise.
* testsuite/ld-plugin/pass.out: New file.
* testsuite/ld-plugin/pr20276a.c: Likewise.
* testsuite/ld-plugin/pr20276b.c: Likewise.
bfd/ChangeLog
bfd/elflink.c
ld/ChangeLog
ld/plugin.c
ld/testsuite/ld-plugin/lto.exp
ld/testsuite/ld-plugin/pass.out [new file with mode: 0644]
ld/testsuite/ld-plugin/pr20276a.c [new file with mode: 0644]
ld/testsuite/ld-plugin/pr20276b.c [new file with mode: 0644]