[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug ld/12365] undefined references produced by linker plugin are silent
From: |
cvs-commit at gcc dot gnu.org |
Subject: |
[Bug ld/12365] undefined references produced by linker plugin are silently ignored |
Date: |
Tue, 03 Feb 2015 17:07:40 +0000 |
https://sourceware.org/bugzilla/show_bug.cgi?id=12365
--- Comment #16 from cvs-commit at gcc dot gnu.org <cvs-commit at gcc dot
gnu.org> ---
The master branch has been updated by H.J. Lu <address@hidden>:
https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=60f79275127603876d94da4bf4e3f6212903b407
commit 60f79275127603876d94da4bf4e3f6212903b407
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.
bfd/
PR ld/12365
PR ld/14272
* elflink.c (_bfd_elf_fix_symbol_flags): Mark the plugin symbol
undefined if it is referenced from a non-IR file.
ld/testsuite/
PR ld/12365
* 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
test.
Run the PR ld/12365 test.
--
You are receiving this mail because:
You are on the CC list for the bug.