https://sourceware.org/bugzilla/show_bug.cgi?id=17578
Bug ID: 17578
Summary: Confusing "requires executable stack" warning from
gold
Product: binutils
Version: unspecified
Status: NEW
Severity: normal
Priority: P2
Component: gold
Assignee: ccoutant at google dot com
Reporter: ilya.konstantinov at gmail dot com
CC: ian at airs dot com
1. Compile object files with -Wa,--execstack
2. Link said object files with -Wl,-z,execstack
gold will produce warnings such as:
ld : warning : foo.o: requires executable stack
This warning is confusing, since one would think that by explicitly specifying
-Wl,-z,execstack, one is acknowledging that and no warning is needed.
The relevant code is in bintuils/gold/layout.cc:
if (parameters->options().warn_execstack()
|| parameters->options().is_stack_executable())
^^^
--
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
bug-binutils mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/bug-binutils