Re: [ARM/FDPIC 04/21] [ARM] FDPIC: Add support for FDPIC for arm architecture

2018-06-10 Thread Christophe Lyon
On 8 June 2018 at 12:31, Kyrill Tkachov wrote: > Hi Christophe, > > > On 25/05/18 09:03, Christophe Lyon wrote: >> >> The FDPIC register is hard-coded to r9, as defined in the ABI. >> >> We have to disable tailcall optimizations if we don't know if the >> target function is in the same module. If

Re: [ARM/FDPIC 04/21] [ARM] FDPIC: Add support for FDPIC for arm architecture

2018-06-08 Thread Kyrill Tkachov
Hi Christophe, On 25/05/18 09:03, Christophe Lyon wrote: The FDPIC register is hard-coded to r9, as defined in the ABI. We have to disable tailcall optimizations if we don't know if the target function is in the same module. If not, we have to set r9 to the value associated with the target modu

[ARM/FDPIC 04/21] [ARM] FDPIC: Add support for FDPIC for arm architecture

2018-05-25 Thread Christophe Lyon
The FDPIC register is hard-coded to r9, as defined in the ABI. We have to disable tailcall optimizations if we don't know if the target function is in the same module. If not, we have to set r9 to the value associated with the target module. When generating a symbol address, we have to take into