[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug ld/12365] undefined references produced by linker plugin are silent
cvs-commit at gcc dot gnu.org
[Bug ld/12365] undefined references produced by linker plugin are silently ignored
Tue, 03 Feb 2015 17:07:40 +0000
--- Comment #16 from cvs-commit at gcc dot gnu.org <cvs-commit at gcc dot
The master branch has been updated by H.J. Lu <address@hidden>:
Author: H.J. Lu <address@hidden>
Date: Tue Feb 3 09:03:23 2015 -0800
Mark the plugin symbol undefined
LTO may optimize out a plugin symbol, which is also referenced by a
non-IR file. When that happens, we should mark the plugin symbol
undefined. It isn't the problem since LTO already determined the
symbols in the non-IR file aren't used.
* elflink.c (_bfd_elf_fix_symbol_flags): Mark the plugin symbol
undefined if it is referenced from a non-IR file.
* ld-plugin/pr12365a.c: New file.
* ld-plugin/pr12365b.c: Likewise.
* ld-plugin/pr12365c.c: Likewise.
* ld-plugin/lto.exp (lto_link_tests): Prepare for the PR ld/12365
Run the PR ld/12365 test.
You are receiving this mail because:
You are on the CC list for the bug.