[PATCH,V4 9/9] ld: bfd: sframe: Update section size also for relocatable links
Jens Remus
jremus@linux.ibm.com
Fri Jun 27 09:01:59 GMT 2025
On 27.06.2025 10:00, Jan Beulich wrote:
> On 19.06.2025 08:24, Indu Bhagat wrote:
>> From: Jens Remus <jremus@linux.ibm.com>
>>
>> For relocatable links the output .sframe section size may be wrong.
...
>> bfd/
>> * elf-sframe.c (_bfd_elf_write_section_sframe): Update section
>> size also for relocatable links.
>>
>> Signed-off-by: Jens Remus <jremus@linux.ibm.com>
>
> Okay, provided my understanding is correct that Jens' subsequent reply
> indicates an independent issue, not one with the change here.
Your understanding is correct. There would be an issue if my patch
would be applied without the rest of this series though, which corrects
the rela r_offset values. Without that resizing the .sframe section
size might result in errors attempting to apply relocations outside of
the section (as the linker assumed .sframe sections to get collated).
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