This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH x86_64] Optimize access to globals in "-fpie -pie" builds with copy relocations
- From: "H.J. Lu" <hjl dot tools at gmail dot com>
- To: Jakub Jelinek <jakub at redhat dot com>
- Cc: Uros Bizjak <ubizjak at gmail dot com>, "gcc-patches at gcc dot gnu dot org" <gcc-patches at gcc dot gnu dot org>, Sriraman Tallam <tmsriram at google dot com>
- Date: Tue, 2 Dec 2014 15:21:31 -0800
- Subject: Re: [PATCH x86_64] Optimize access to globals in "-fpie -pie" builds with copy relocations
- Authentication-results: sourceware.org; auth=none
- References: <CAFULd4aMopCHZHTWa3V=6-CwVLq1grorwRqT7yCaOfpLWYZibw at mail dot gmail dot com> <CAMe9rOok=sUB=OVdFNt369gkpNWxVgzQKjeDVQT96SrSNRS=Vw at mail dot gmail dot com> <CAFULd4Z=WaenYMr=Ke1QLQAq4bVQpkOD_Wt3nW4w9F71fuaPAw at mail dot gmail dot com> <CAMe9rOq1iw9NPfWeXa9F2xqBr7zGAXHNFN7Lgd3zmX3pLZZSYQ at mail dot gmail dot com> <20141202201929 dot GN1860 at tucnak dot redhat dot com> <CAMe9rOqrcu_JdzA3hKNHjEV3Vyt9wJ3dXb6JXfPWmiVqpMMzsg at mail dot gmail dot com>
On Tue, Dec 2, 2014 at 2:14 PM, H.J. Lu <hjl.tools@gmail.com> wrote:
> On Tue, Dec 2, 2014 at 12:19 PM, Jakub Jelinek <jakub@redhat.com> wrote:
>> On Tue, Dec 02, 2014 at 12:16:09PM -0800, H.J. Lu wrote:
>>> > IMO, nobody will use this highly special x86_64-only option. It would
>>> > be best for gnu-ld to reach feature parity with gold as far as this
>>> > functionality is concerned. In this case, the optimization would be
>>> > auto-configured, and would fire automatically, without any user
>>> > intervention.
>>>
>>> I will implement it in ld after its support is checked into GCC.
>>
>> I think it would be better to do it the other way around, so that gcc can be
>> configured against the right ld from the start.
>>
>
> Consider it is done. I will check it into binutils ths week.
>
It is on binutils master branch now:
https://sourceware.org/git/?p=binutils-gdb.git;a=commit;h=9a926d55ab4b6667f6c35b518d59b902fe490d9d
--
H.J.