https://sourceware.org/bugzilla/show_bug.cgi?id=33156
--- Comment #8 from Sourceware Commits <cvs-commit at gcc dot gnu.org> --- The master branch has been updated by H.J. Lu <h...@sourceware.org>: https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=d7f343eaad3f34c76657b9996e6253b4f9a218d5 commit d7f343eaad3f34c76657b9996e6253b4f9a218d5 Author: H.J. Lu <hjl.to...@gmail.com> Date: Tue Jul 15 10:41:25 2025 +0800 x86-64: Remove sframe relocs against discarded sections Since unlike eh_frame editing code, sframe editing code keeps R_X86_64_NONE reloc as is, its r_offset is wrong, we must not generate R_X86_64_NONE reloc in sframe section against discarded sections for "ld -r". bfd/ PR ld/33156 * elf64-x86-64.c (elf_x86_64_relocate_section): Also remove sframe relocations against discarded sections for "ld -r". ld/ PR ld/33156 * testsuite/ld-elf/eh-group.exp (as_gsframe): New. Assemble eh-group.o with $as_gsframe. Signed-off-by: H.J. Lu <hjl.to...@gmail.com> -- You are receiving this mail because: You are on the CC list for the bug.