[PATCH 0/4] Fix relocatable links of SFrame sections
Indu Bhagat
indu.bhagat@oracle.com
Mon Mar 31 18:52:01 GMT 2025
Hi,
This patch series resolves two PRs related to relocatable links
involving SFrame sections:
PR libsframe/32589 - function start address is zero in SFrame section dump
PR ld/32666 - Incorrect .rela.sframe when using ld -r
The first patch in the series addresses a thinko in GAS/ld.bfd related
to SFrame FDE func_start_addr. Subsequent patches are the bugfixes.
Patch 3 and 4 will be combined at commit time; the fix for PR ld/32666
currently remains split in patch 3 and 4 for ease of review.
This series was previously posted as RFC earlier:
https://sourceware.org/pipermail/binutils/2025-March/139853.html
Thanks
Indu Bhagat (4):
gas: ld: sframe: FDE func start address is from start of section
objdump, readelf: sframe: apply relocations before textual dump
ld: bfd: sframe: fix incorrect r_offset in RELA entries
ld: bfd: sframe: fix incorrect r_addend in RELA entries
bfd/elf-bfd.h | 13 +++
bfd/elf-sframe.c | 101 +++++++++++++++++-
bfd/elf.c | 3 +
bfd/elflink.c | 27 ++++-
bfd/elfxx-x86.c | 19 ++--
binutils/dwarf.c | 35 ++++++
binutils/dwarf.h | 1 +
binutils/objdump.c | 59 ++++------
binutils/readelf.c | 50 ++-------
gas/gen-sframe.c | 9 +-
.../cfi-sframe-aarch64-pac-ab-key-1.d | 8 +-
include/sframe.h | 2 +-
ld/testsuite/ld-x86-64/sframe-reloc-1.d | 34 ++++++
ld/testsuite/ld-x86-64/x86-64.exp | 1 +
14 files changed, 259 insertions(+), 103 deletions(-)
create mode 100644 ld/testsuite/ld-x86-64/sframe-reloc-1.d
--
2.43.0
More information about the Binutils
mailing list