https://sourceware.org/bugzilla/show_bug.cgi?id=34150
Bug ID: 34150
Summary: --print-gc-sections with --fatal-warnings treats
diagnostic output as errors
Product: binutils
Version: 2.46
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: ld
Assignee: unassigned at sourceware dot org
Reporter: swbugs at jbirnbaum dot com
Target Milestone: ---
This is very similar to bug 609.
Combining the command line options --gc-sections --print-gc-sections and
--fatal-warnings results in ld reporting "link errors found" and returning with
a non-zero exit code. Linking succeeds if you remove either
--print-gc-sections or --fatal-warnings.
I reproduced this with older versions back to 2.30. It works correctly in
version 2.22.
--
You are receiving this mail because:
You are on the CC list for the bug.