[Bug target/82303] Better PIE/PIC code generation for kernel code (x86_64 & arm64)
thgarnie at google dot com
gcc-bugzilla@gcc.gnu.org
Tue Jan 23 18:30:00 GMT 2018
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82303
--- Comment #11 from Thomas Garnier <thgarnie at google dot com> ---
I think for this file using only -mcmodel=large makes more sense.
Given the proposed option (-fstatic-pie) is not kernel specific, the TLS is not
needed. What do you think about disabling optimization like switch folding [1]?
It seems to exist only to remove relocations that is not even needed in a
classic -fPIE (or -fstatic-pie) scenario.
[1]
https://github.com/gcc-mirror/gcc/blob/7977b0509f07e42fbe0f06efcdead2b7e4a5135f/gcc/tree-switch-conversion.c#L828
More information about the Gcc-bugs
mailing list