[PATCH] Don't use PLT nor GOT in libc.a [BZ #20750]
H.J. Lu
hjl.tools@gmail.com
Fri Nov 4 19:25:00 GMT 2016
On Fri, Nov 4, 2016 at 12:03 PM, Florian Weimer <fweimer@redhat.com> wrote:
> On 11/04/2016 06:47 PM, H.J. Lu wrote:
>>
>> There is no need to use PLT nor GOT in libc.a to branch to a function,
>> regardless whether libc.a is compiled with PIC or not.
>>
>> Tested on x86-64. OK for master?
>
>
> Isn't this header file used outside of libc as well?
It is used for other .a files. If they aren't used to create static binaries,
PLT/GOT may be used. The resulting executable will work correctly.
> (And the commit message should mention that this change is specific to
> x86_64.)
>
I will update it.
--
H.J.
More information about the Libc-alpha
mailing list