diff options
author | Alan Modra <amodra@gmail.com> | 2016-06-20 09:53:50 +0930 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2016-06-20 11:26:13 +0930 |
commit | 0616a2803812f5c13f8936d281bd71c3d9c09655 (patch) | |
tree | 9e08397ff38e47df39dccd4dbc7ac0d418d02bbd /bfd/elflink.c | |
parent | 6336b4b7370b8034091364f500184c0a8674a340 (diff) | |
download | gdb-0616a2803812f5c13f8936d281bd71c3d9c09655.zip gdb-0616a2803812f5c13f8936d281bd71c3d9c09655.tar.gz gdb-0616a2803812f5c13f8936d281bd71c3d9c09655.tar.bz2 |
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.
Diffstat (limited to 'bfd/elflink.c')
-rw-r--r-- | bfd/elflink.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/bfd/elflink.c b/bfd/elflink.c index 6d591de..d4e8db6 100644 --- a/bfd/elflink.c +++ b/bfd/elflink.c @@ -4556,7 +4556,8 @@ error_free_dyn: symbol_align = ffs (h->root.u.def.value) - 1; if (h->root.u.def.section->owner != NULL - && (h->root.u.def.section->owner->flags & DYNAMIC) == 0) + && (h->root.u.def.section->owner->flags + & (DYNAMIC | BFD_PLUGIN)) == 0) { normal_align = h->root.u.def.section->alignment_power; if (normal_align > symbol_align) |