https://sourceware.org/bugzilla/show_bug.cgi?id=32666
Bug ID: 32666 Summary: Incorrect .rela.sframe when using ld -r Product: binutils Version: unspecified Status: UNCONFIRMED Severity: normal Priority: P2 Component: ld Assignee: unassigned at sourceware dot org Reporter: wnliu at google dot com Target Milestone: --- Created attachment 15936 --> https://sourceware.org/bugzilla/attachment.cgi?id=15936&action=edit readelf dump for fat.ko Incorrect .rela.sframe when using ld -r When building kernel with the `-Wa,--gsframe` flag (for sframe support) results in several instances of incorrect offset values within the .rela.sframe section of the compiled kernel modules. For example, readelf -r ./fs/fat/fat.ko ``` ... Relocation section '.rela.sframe' at offset 0x1848a0 contains 129 entries: Offset Info Type Sym. Value Sym. Name + Addend 00000000001c 000100000105 R_AARCH64_PREL32 0000000000000000 .text + 8 000000000030 000100000105 R_AARCH64_PREL32 0000000000000000 .text + 28 000000000044 000100000105 R_AARCH64_PREL32 0000000000000000 .text + a8 000000000058 000200000105 R_AARCH64_PREL32 0000000000000000 .init.text + 8 00000000006c 000100000105 R_AARCH64_PREL32 0000000000000000 .text + 358 000000000080 000100000105 R_AARCH64_PREL32 0000000000000000 .text + 390 000000000094 000100000105 R_AARCH64_PREL32 0000000000000000 .text + 4c8 0000000000a8 000100000105 R_AARCH64_PREL32 0000000000000000 .text + 8f8 0000000000bc 000100000105 R_AARCH64_PREL32 0000000000000000 .text + a98 0000000001cc 000100000105 R_AARCH64_PREL32 0000000000000000 .text + b88 0000000001e0 000100000105 R_AARCH64_PREL32 0000000000000000 .text + dc0 ... 0000000003c0 000100000105 R_AARCH64_PREL32 0000000000000000 .text + 4658 00000000077c 000100000105 R_AARCH64_PREL32 0000000000000000 .text + 4788 000000000790 000100000105 R_AARCH64_PREL32 0000000000000000 .text + 47e8 ... ``` Tested with below code for arm64 target: https://lore.kernel.org/linux-arm-kernel/20250127213310.2496133-1-wn...@google.com/ or https://github.com/rgushchin/linux/tree/sframe_unwinder.rfc -- You are receiving this mail because: You are on the CC list for the bug.