[Bug pch/71934] pch cannot be disabled so gcc cannot be position independent
bugdal at aerifal dot cx
gcc-bugzilla@gcc.gnu.org
Wed Jul 20 15:16:00 GMT 2016
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71934
Rich Felker <bugdal at aerifal dot cx> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |bugdal at aerifal dot cx
--- Comment #4 from Rich Felker <bugdal at aerifal dot cx> ---
Note that some hosts are PIC/PIE only, or require relocating the program text
at runtime (textrels). This includes anything without an MMU. GCC 5.x and
presumably 6.x works fine on the NOMMU target I've tested with ELF/FDPIC ABI,
but of course would blow up if somebody tried using a precompiled header file.
There should really be a build-time option to make gcc completely ignore the
existence of .gch files and fallback to the normal headers as if they didn't
exist. Even better would be just removing PCH support completely.
More information about the Gcc-bugs
mailing list