[Bug driver/81653] gcc configured with --enable-default-pie on SPARC miscompiles hand-written .s files

bruno at clisp dot org gcc-bugzilla@gcc.gnu.org
Sat Aug 5 17:57:00 GMT 2017


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81653

--- Comment #6 from Bruno Haible <bruno at clisp dot org> ---
> passing -fno-pie seems to be the agreed upon way out here.

My assembly code is located in a library (think at libffcall, libffi, gmp,
...).
Therefore I don't control the final linker options.

So, the only available option the '#ifdef __PIC__' solution from comment 2.


More information about the Gcc-bugs mailing list