[RFC,SCHEME_B 4/7] ld: bfd: sframe: fix incorrect r_offset in RELA entries
Jens Remus
jremus@linux.ibm.com
Thu Apr 24 08:58:48 GMT 2025
On 24.04.2025 04:32, Alan Modra wrote:
> On Tue, Apr 22, 2025 at 12:02:02PM +0100, Nick Clifton wrote:
>>> Let me Cc Nick and Alan - maybe they have a specific view on this either
>>> way, with their much longer experience.
>>
>> Since I have not been following this discussion,
>
> Nor have I. The only comment I'd make is that perhaps another option
> is to not combine sframe sections for ld -r, so there wouldn't be
> anything out of the ordinary for ld -r relocation processing. That of
> course would mean final linking must handle multiple .sframe sections
> in a given object file.
That would most likely not work for the Linux Kernel purpose that
surfaced this issue with bad .sframe in relocatable links. To generate
stack traces using SFrame from Kernel modules they need to have a single
merged .sframe section. Having multiple .sframe sections would require
pre-processing, something the merging would actually take care of.
Regards,
Jens
--
Jens Remus
Linux on Z Development (D3303)
+49-7031-16-1128 Office
jremus@de.ibm.com
IBM
IBM Deutschland Research & Development GmbH; Vorsitzender des Aufsichtsrats: Wolfgang Wendt; Geschäftsführung: David Faller; Sitz der Gesellschaft: Böblingen; Registergericht: Amtsgericht Stuttgart, HRB 243294
IBM Data Privacy Statement: https://www.ibm.com/privacy/
More information about the Binutils
mailing list