https://sourceware.org/bugzilla/show_bug.cgi?id=31067
Bug ID: 31067
Summary: symbols eliminated by --gc-sections still trigger
warnings for gnu.warning.SYM
Product: binutils
Version: 2.42 (HEAD)
Status: NEW
Severity: normal
Priority: P2
Component: ld
Assignee: unassigned at sourceware dot org
Reporter: rearnsha at sourceware dot org
Target Milestone: ---
Created attachment 15222
--> https://sourceware.org/bugzilla/attachment.cgi?id=15222&action=edit
bug demonstrator
If a function with an associated .gnu.warning.<function> section is dragged
into a link set then the warning will be emitted even if <function> is later
discarded entirely by --gc-sections. See the attached testcase as a trivial
example. This is a reduction from a real-world example where the whole printf
functionality was eliminated from a program, but the warning from _write in
newlib's libnosys.a was still emitted.
--
You are receiving this mail because:
You are on the CC list for the bug.