https://sourceware.org/bugzilla/show_bug.cgi?id=33400
Bug ID: 33400 Summary: Option to make ld plugin warnings fatal Product: binutils Version: 2.45 Status: NEW Severity: normal Priority: P2 Component: ld Assignee: unassigned at sourceware dot org Reporter: sam at gentoo dot org Target Milestone: --- Today I had this when looking at an ODR issue with LTO: ``` /usr/lib/gcc/x86_64-pc-linux-gnu/16/../../../../x86_64-pc-linux-gnu/bin/ld: warning: size of symbol `yylval' changed from 8 in aclyacc.o (symbol from plugin) to 48 in /tmp/ccAkh7eZ.ltran s0.ltrans.o /usr/lib/gcc/x86_64-pc-linux-gnu/16/../../../../x86_64-pc-linux-gnu/bin/ld: warning: NOTE: size discrepancies can cause real problems. Investigation is advised. /usr/lib/gcc/x86_64-pc-linux-gnu/16/../../../../x86_64-pc-linux-gnu/bin/ld: warning: size of symbol `yyval' changed from 8 in aclyacc.o (symbol from plugin) to 48 in /tmp/ccAkh7eZ.ltrans 0.ltrans.o /usr/lib/gcc/x86_64-pc-linux-gnu/16/../../../../x86_64-pc-linux-gnu/bin/ld: warning: NOTE: size discrepancies can cause real problems. Investigation is advised. ``` Is it possible to make plugin warnings (ideally *only* plugin warnings) be errors, other than -Wl,--fatal-warnings? Even better again would be for this to somehow be controllable via GCC's -Wodr/-Werror=lto-type-mismatch but that would mean the plugin had to feed it back. -- You are receiving this mail because: You are on the CC list for the bug.