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.