[Bug other/91744] -fno-pie is not honored
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91744 --- Comment #5 from Andrew Pinski --- (In reply to Eric Gallager from comment #4) > > That's confusing. Is there anywhere in the documentation or somewhere that > this could be clarified? Maybe a "Commonly Confused Compiler Options" page > in the wiki or something? The documentation is clear here and even mentions -pie option for the link side: -fpie -fPIE These options are similar to -fpic and -fPIC, but the generated position-independent code can be only linked into executables. Usually these options are used to compile code that will be linked using the -pie GCC option. -fpie and -fPIE both define the macros __pie__ and __PIE__. The macros have the value 1 for -fpie and 2 for -fPIE. CUT --- I think someone did not read the documentation after all.
[Bug other/91744] -fno-pie is not honored
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91744 Eric Gallager changed: What|Removed |Added CC||egallager at gcc dot gnu.org --- Comment #4 from Eric Gallager --- (In reply to Andrew Pinski from comment #2) > You want -no-pie; not -fno-pie. > -no-pie turns off the linking and -fno-pie just turns off the compiler > option. That's confusing. Is there anywhere in the documentation or somewhere that this could be clarified? Maybe a "Commonly Confused Compiler Options" page in the wiki or something?
[Bug other/91744] -fno-pie is not honored
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91744 --- Comment #3 from Jeffrey Walton --- (In reply to Andrew Pinski from comment #2) > You want -no-pie; not -fno-pie. > -no-pie turns off the linking and -fno-pie just turns off the compiler > option. Thanks Andrew.
[Bug other/91744] -fno-pie is not honored
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91744 Andrew Pinski changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED Component|c |other Resolution|--- |INVALID --- Comment #2 from Andrew Pinski --- You want -no-pie; not -fno-pie. -no-pie turns off the linking and -fno-pie just turns off the compiler option.