[Bug target/82303] Better PIE/PIC code generation for kernel code (x86_64 & arm64)

hjl.tools at gmail dot com gcc-bugzilla@gcc.gnu.org
Fri Jan 19 19:02:00 GMT 2018


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

--- Comment #10 from H.J. Lu <hjl.tools at gmail dot com> ---
(In reply to Thomas Garnier from comment #9)
> I tested the change against a modified version of the proposed Linux x86_64
> PIE support. The changes removes all the PLT32 and GOT64 entry but I still
> get R_X86_64_GOTPC64 & R_X86_64_GOTOFF64 relocations on the head64.c file
> that is built with -mcmodel=large (to prevent odd logic on early boot with
> different VA).
> 
> Do you think the suggested patch can be changed to remove these?
> 

I believe that is the nature of the large PIE model.


More information about the Gcc-bugs mailing list