Re: [RFC][PATCH v4 27/32] objtool: mcount: Generic location and relocation table types

2020-06-09 Thread Kamalesh Babulal
On 6/9/20 11:42 PM, Matt Helsley wrote: [...] >> Hi Matt, >> >> I was trying out the patch series on ppc64le and found that __mcount_loc >> and .rela__mcount_loc section pairs do not get generated. >> >> # readelf -S fs/proc/cmdline.o|grep mcount >> # >> >> Debugged the cause to

Re: [RFC][PATCH v4 27/32] objtool: mcount: Generic location and relocation table types

2020-06-09 Thread Matt Helsley
On Tue, Jun 09, 2020 at 12:11:55PM +0530, Kamalesh Babulal wrote: > On 6/3/20 1:20 AM, Matt Helsley wrote: > > Rather than building the exact ELF section data we need and > > avoiding libelf's conversion step, use more GElf types > > and then libelf's elfxx_xlatetof() functions to convert > > the

Re: [RFC][PATCH v4 27/32] objtool: mcount: Generic location and relocation table types

2020-06-09 Thread Kamalesh Babulal
On 6/3/20 1:20 AM, Matt Helsley wrote: > Rather than building the exact ELF section data we need and > avoiding libelf's conversion step, use more GElf types > and then libelf's elfxx_xlatetof() functions to convert > the mcount locations (GElf_Addr) and associated relocations. > > This converts

[RFC][PATCH v4 27/32] objtool: mcount: Generic location and relocation table types

2020-06-02 Thread Matt Helsley
Rather than building the exact ELF section data we need and avoiding libelf's conversion step, use more GElf types and then libelf's elfxx_xlatetof() functions to convert the mcount locations (GElf_Addr) and associated relocations. This converts sift_rel_mcount() so that it doesn't use the