Re: [RFC V2 00/16] objtool: Add support for Arm64

2019-06-13 Thread Josh Poimboeuf
On Thu, Jun 13, 2019 at 04:55:31PM +0100, Raphael Gault wrote: > Hi Josh, > > On 5/28/19 11:24 PM, Josh Poimboeuf wrote: > > On Tue, May 21, 2019 at 12:50:57PM +, Raphael Gault wrote: > > > Hi Josh, > > > > > > Thanks for offering your help and sorry for the late answer. > > > > > > My under

Re: [RFC V2 00/16] objtool: Add support for Arm64

2019-06-13 Thread Raphael Gault
Hi Josh, On 5/28/19 11:24 PM, Josh Poimboeuf wrote: On Tue, May 21, 2019 at 12:50:57PM +, Raphael Gault wrote: Hi Josh, Thanks for offering your help and sorry for the late answer. My understanding is that a table of offsets is built by GCC, those offsets being scaled by 4 before adding t

Re: [RFC V2 00/16] objtool: Add support for Arm64

2019-05-28 Thread Josh Poimboeuf
On Tue, May 21, 2019 at 12:50:57PM +, Raphael Gault wrote: > Hi Josh, > > Thanks for offering your help and sorry for the late answer. > > My understanding is that a table of offsets is built by GCC, those > offsets being scaled by 4 before adding them to the base label. > I believe the offse

Re: [RFC V2 00/16] objtool: Add support for Arm64

2019-05-22 Thread Josh Poimboeuf
On Tue, May 21, 2019 at 12:50:57PM +, Raphael Gault wrote: > Hi Josh, > > Thanks for offering your help and sorry for the late answer. > > My understanding is that a table of offsets is built by GCC, those > offsets being scaled by 4 before adding them to the base label. > I believe the offse

Re: [RFC V2 00/16] objtool: Add support for Arm64

2019-05-21 Thread Raphael Gault
Hi Josh, Thanks for offering your help and sorry for the late answer. My understanding is that a table of offsets is built by GCC, those offsets being scaled by 4 before adding them to the base label. I believe the offsets are stored in the .rodata section. To find the size of that table, it is n

Re: [RFC V2 00/16] objtool: Add support for Arm64

2019-05-16 Thread Josh Poimboeuf
On Thu, May 16, 2019 at 11:36:39AM +0100, Raphael Gault wrote: > Noteworthy points: > * I still haven't figured out how to detect switch-tables on arm64. I > have a better understanding of them but still haven't implemented checks > as it doesn't look trivial at all. Switch tables were tricky to g

[RFC V2 00/16] objtool: Add support for Arm64

2019-05-16 Thread Raphael Gault
As of now, objtool only supports the x86_64 architecture but the groundwork has already been done in order to add support for other architectures without too much effort. This series of patches adds support for the arm64 architecture based on the Armv8.5 Architecture Reference Manual. Objtool wil