Re: PING: [PATCH] x86-64: Check R_X86_64_CODE_6_GOTTPOFF support

2024-02-23 Thread H.J. Lu
On Fri, Feb 23, 2024 at 11:12:41AM +0100, Uros Bizjak wrote: > On Fri, Feb 23, 2024 at 3:45 AM H.J. Lu wrote: > > > > On Thu, Feb 22, 2024 at 6:39 PM Hongtao Liu wrote: > > > > > > On Thu, Feb 22, 2024 at 10:33 PM H.J. Lu wrote: > > > > > > > > On Sun, Feb 18, 2024 at 8:02 AM H.J. Lu wrote: > >

Re: PING: [PATCH] x86-64: Check R_X86_64_CODE_6_GOTTPOFF support

2024-02-23 Thread Uros Bizjak
On Fri, Feb 23, 2024 at 3:45 AM H.J. Lu wrote: > > On Thu, Feb 22, 2024 at 6:39 PM Hongtao Liu wrote: > > > > On Thu, Feb 22, 2024 at 10:33 PM H.J. Lu wrote: > > > > > > On Sun, Feb 18, 2024 at 8:02 AM H.J. Lu wrote: > > > > > > > > If assembler and linker supports > > > > > > > > add %reg1, na

Re: PING: [PATCH] x86-64: Check R_X86_64_CODE_6_GOTTPOFF support

2024-02-22 Thread H.J. Lu
On Thu, Feb 22, 2024 at 6:39 PM Hongtao Liu wrote: > > On Thu, Feb 22, 2024 at 10:33 PM H.J. Lu wrote: > > > > On Sun, Feb 18, 2024 at 8:02 AM H.J. Lu wrote: > > > > > > If assembler and linker supports > > > > > > add %reg1, name@gottpoff(%rip), %reg2 > > > > > > with R_X86_64_CODE_6_GOTTPOFF,

Re: PING: [PATCH] x86-64: Check R_X86_64_CODE_6_GOTTPOFF support

2024-02-22 Thread Hongtao Liu
On Thu, Feb 22, 2024 at 10:33 PM H.J. Lu wrote: > > On Sun, Feb 18, 2024 at 8:02 AM H.J. Lu wrote: > > > > If assembler and linker supports > > > > add %reg1, name@gottpoff(%rip), %reg2 > > > > with R_X86_64_CODE_6_GOTTPOFF, we can generate it instead of > > > > mov name@gottpoff(%rip), %reg2 > >

PING: [PATCH] x86-64: Check R_X86_64_CODE_6_GOTTPOFF support

2024-02-22 Thread H.J. Lu
On Sun, Feb 18, 2024 at 8:02 AM H.J. Lu wrote: > > If assembler and linker supports > > add %reg1, name@gottpoff(%rip), %reg2 > > with R_X86_64_CODE_6_GOTTPOFF, we can generate it instead of > > mov name@gottpoff(%rip), %reg2 > add %reg1, %reg2 > > gcc/ > > * configure.ac (HAVE_AS_R_X86_64

[PATCH] x86-64: Check R_X86_64_CODE_6_GOTTPOFF support

2024-02-18 Thread H.J. Lu
If assembler and linker supports add %reg1, name@gottpoff(%rip), %reg2 with R_X86_64_CODE_6_GOTTPOFF, we can generate it instead of mov name@gottpoff(%rip), %reg2 add %reg1, %reg2 gcc/ * configure.ac (HAVE_AS_R_X86_64_CODE_6_GOTTPOFF): Defined as 1 if R_X86_64_CODE_6_GOTTPOFF i