https://sourceware.org/bugzilla/show_bug.cgi?id=33807

--- Comment #5 from Sourceware Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by H.J. Lu <[email protected]>:

https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=7487c98ff07a7c9a865c5c8b8db62cfa6e5bd966

commit 7487c98ff07a7c9a865c5c8b8db62cfa6e5bd966
Author: H.J. Lu <[email protected]>
Date:   Sun Jan 18 09:24:48 2026 +0800

    x32: Allow R_X86_64_PC64 for SFrame V3

    SFrame V3 generates R_X86_64_PC64 relocation, instead of R_X86_64_PC32,
    in .sframe section for x86-64.  Although x32 doesn't support SFrame,
    .sframe section can be found in x32 object converted from x86-64 object
    with objcopy, which only changes the ELF file class from ELFCLASS64 to
    ELFCLASS32 with all section contents unchanged.

    Update elf_x86_64_scan_relocs to allow R_X86_64_PC64 for x32 so that
    x32 object file with .sframe section can be used as x32 linker input.

    bfd/

            PR ld/33807
            * elf64-x86-64.c (elf_x86_64_scan_relocs): Allow R_X86_64_PC64
            for x32.

    ld/

            PR ld/33807
            * testsuite/ld-x86-64/sframe.rd: New file.
            * testsuite/ld-x86-64/sframe.s: Likewise.
            * testsuite/ld-x86-64/x86-64.exp: Run PR ld/33807 tests.

    Signed-off-by: H.J. Lu <[email protected]>

-- 
You are receiving this mail because:
You are on the CC list for the bug.

Reply via email to