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

--- Comment #7 from Sourceware Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Maciej W. Rozycki <ma...@sourceware.org>:

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

commit 7ea90d9316d375924b342485eb0cf99d268bf62f
Author: Alan Modra <amo...@gmail.com>
Date:   Sat Jul 12 01:25:53 2025 +0100

    MIPS: Fix linker for REL TLS HI16/LO16 relocs

    With REL targets TLS HI16/LO16 relocations need to combine the low part
    with the high part just as all the remaining HI16/LO16 relocations, so
    as to determine the borrow in calculation correctly.

    2025-07-12  Alan Modra  <amo...@gmail.com>

    bfd/
            PR 19977
            * elfxx-mips.c (tls_hi16_reloc_p): New function.
            (mips_elf_add_lo16_rel_addend): Handle tls relocs.
            (_bfd_mips_elf_relocate_section): Likewise.

    2025-07-12  Maciej W. Rozycki  <ma...@orcam.me.uk>

    ld/
            PR 19977
            * testsuite/ld-mips-elf/pr19977.d: New test.
            * testsuite/ld-mips-elf/pr19977-mips16.d: New test.
            * testsuite/ld-mips-elf/pr19977-micromips.d: New test.
            * testsuite/ld-mips-elf/pr19977-r.d: New test.
            * testsuite/ld-mips-elf/pr19977-r-mips16.d: New test.
            * testsuite/ld-mips-elf/pr19977-r-micromips.d: New test.
            * testsuite/ld-mips-elf/pr19977-r.s: New test source.
            * testsuite/ld-mips-elf/pr19977.ld: New test linker script.
            * testsuite/ld-mips-elf/mips-elf.exp: Run the new tests.

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

Reply via email to