Re: PING: [PATCH] x86: Force __x86_indirect_thunk_reg for function call via GOT

2018-03-20 Thread H.J. Lu
On Tue, Mar 20, 2018 at 7:48 AM, Jan Hubicka wrote: >> On Tue, Feb 27, 2018 at 11:39 AM, H.J. Lu wrote: >> > For x86 targets, when -fno-plt is used, external functions are called >> > via GOT slot, in 64-bit mode: >> > >> > [bnd] call/jmp *foo@GOTPCREL(%rip) >> > >> > and in 32-bit mode:

Re: PING: [PATCH] x86: Force __x86_indirect_thunk_reg for function call via GOT

2018-03-20 Thread Jan Hubicka
> On Tue, Feb 27, 2018 at 11:39 AM, H.J. Lu wrote: > > For x86 targets, when -fno-plt is used, external functions are called > > via GOT slot, in 64-bit mode: > > > > [bnd] call/jmp *foo@GOTPCREL(%rip) > > > > and in 32-bit mode: > > > > [bnd] call/jmp *foo@GOT[(%reg)] > > > > With

PING: [PATCH] x86: Force __x86_indirect_thunk_reg for function call via GOT

2018-03-05 Thread H.J. Lu
On Tue, Feb 27, 2018 at 11:39 AM, H.J. Lu wrote: > For x86 targets, when -fno-plt is used, external functions are called > via GOT slot, in 64-bit mode: > > [bnd] call/jmp *foo@GOTPCREL(%rip) > > and in 32-bit mode: > > [bnd] call/jmp *foo@GOT[(%reg)] > > With -mindirect-branch=, t