diff options
author | H.J. Lu <hjl.tools@gmail.com> | 2017-11-28 03:48:25 -0800 |
---|---|---|
committer | H.J. Lu <hjl.tools@gmail.com> | 2017-11-28 03:48:44 -0800 |
commit | a83ef4d139c377e0e87d105977d85c6ef9fbb162 (patch) | |
tree | 5c962499a8395d45d1d270f31a94f381ea0a7b6c /bfd/ChangeLog | |
parent | f0531ed6a429b0e6e6509e6852ccd3586f3fa1bd (diff) | |
download | gdb-a83ef4d139c377e0e87d105977d85c6ef9fbb162.zip gdb-a83ef4d139c377e0e87d105977d85c6ef9fbb162.tar.gz gdb-a83ef4d139c377e0e87d105977d85c6ef9fbb162.tar.bz2 |
ld: Set non_ir_ref_regular on symbols referenced in regular objects
If linker plugin is enabled, set non_ir_ref_regular on symbols referenced
in regular objects so that linker plugin will get the correct symbol
resolution.
bfd/
PR ld/22502
* elflink.c (_bfd_elf_merge_symbol): Also skip definition from
an IR object.
(elf_link_add_object_symbols): If linker plugin is enabled, set
non_ir_ref_regular on symbols referenced in regular objects so
that linker plugin will get the correct symbol resolution.
ld/
PR ld/22502
* testsuite/ld-plugin/lto.exp: Run PR ld/22502 test.
* testsuite/ld-plugin/pr22502a.c: New file.
* testsuite/ld-plugin/pr22502b.c: Likewise.
Diffstat (limited to 'bfd/ChangeLog')
-rw-r--r-- | bfd/ChangeLog | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/bfd/ChangeLog b/bfd/ChangeLog index 3903b1d..abd7c96 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,3 +1,12 @@ +2017-11-28 H.J. Lu <hongjiu.lu@intel.com> + + PR ld/22502 + * elflink.c (_bfd_elf_merge_symbol): Also skip definition from + an IR object. + (elf_link_add_object_symbols): If linker plugin is enabled, set + non_ir_ref_regular on symbols referenced in regular objects so + that linker plugin will get the correct symbol resolution. + 2017-11-27 Szabolcs Nagy <szabolcs.nagy@arm.com> PR ld/22263 |