This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug driver/81653] gcc configured with --enable-default-pie on SPARC miscompiles hand-written .s files
- From: "bruno at clisp dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Sat, 05 Aug 2017 17:57:10 +0000
- Subject: [Bug driver/81653] gcc configured with --enable-default-pie on SPARC miscompiles hand-written .s files
- Auto-submitted: auto-generated
- References: <bug-81653-4@http.gcc.gnu.org/bugzilla/>
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.