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

--- Comment #15 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=55c91b7e5c7f7829ff69738f159e0380383a7356

commit 55c91b7e5c7f7829ff69738f159e0380383a7356
Author: H.J. Lu <hjl.to...@gmail.com>
Date:   Mon Aug 11 12:40:15 2025 -0700

    x86: Always treat protected symbols as local

    Since linker never generates dynamic relocation for protected symbol in:

    __attribute__((visibility("protected"))) int my_data;

    int *
    func (void)
    {
      return &my_data;
    }

    we should always treat protected symbols as local.

    bfd/

            PR ld/33260
            * elfxx-x86.h (COPY_INPUT_RELOC_P): Always treat protected symbols
            as local.

    ld/

            PR ld/33260
            * testsuite/ld-i386/i386-export-class.rd: Updated.
            * testsuite/ld-i386/i386-export-class.xd: Likewise.
            * testsuite/ld-i386/i386.exp: Run pr33260-2.
            * testsuite/ld-i386/pr33260-2.d: New file.
            * testsuite/ld-i386/pr33260-2.s: Likewise.
            * testsuite/ld-i386/pr33260.d: Remove "-z indirect-extern-access".
            * testsuite/ld-x86-64/pr33260-x32.d: Likewise.
            * testsuite/ld-x86-64/pr33260.d: Likewise.
            * testsuite/ld-x86-64/pr33260-2-x32.d: New file.
            * testsuite/ld-x86-64/pr33260-2.d: Likewise.
            * testsuite/ld-x86-64/pr33260-2.s: Likewise.
            * testsuite/ld-x86-64/x86-64-64-export-class.rd: Updated.
            * testsuite/ld-x86-64/x86-64-x32-export-class.rd: Likewise.
            * testsuite/ld-x86-64/x86-64.exp: Run pr33260-2 and
            pr33260-2-x32.

    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