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

--- Comment #7 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=5e247da8afb8b764cb111ce1a05e8cb8862a7f98

commit 5e247da8afb8b764cb111ce1a05e8cb8862a7f98
Author: H.J. Lu <hjl.to...@gmail.com>
Date:   Mon Apr 28 07:12:48 2025 +0800

    elf: Properly set sh_offset for .tbss sections

    Set sh_offset for .tbss sections to their nominal offset after aligning.
    They are not loaded from disk so the value doesn't really matter, except
    when the .tbss section is the first one in a PT_TLS segment.  In that
    case, it sets the p_offset for the PT_TLS segment, which according to
    the ELF gABI ought to satisfy p_offset % p_align == p_vaddr % p_align.

    bfd/

            PR ld/32896
            * elf.c (assign_file_positions_for_load_sections): Properly set
            sh_offset for .tbss sections.

    ld/

            PR ld/32896
            * testsuite/ld-elf/tbss4.d: New file.
            * testsuite/ld-elf/tbss4.s: Likewise.

    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.

Reply via email to