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

--- Comment #14 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=833aa67d03a955a8575a361260423d594e9ae24c

commit 833aa67d03a955a8575a361260423d594e9ae24c
Author: H.J. Lu <hjl.to...@gmail.com>
Date:   Sat Aug 23 09:35:50 2025 -0700

    x86-64: Use the GOT indirection in no-plt-check1.S

    There is

            cmpq    %rax, func_p(%rip)

    in no-plt-check1.S which requires copy relocation when func_p, a function
    pointer, is defined in a shared library.  Use the GOT indirection to
    access func_p

            movq    func_p@GOTPCREL(%rip), %rdx
            cmpq    %rax, (%rdx)

    to remove copy relocation to support PIE without copy relocation.

            PR ld/33237
            * testsuite/ld-x86-64/no-plt-check1.S: Use the GOT indirection
            to access func_p.
            * testsuite/ld-x86-64/no-plt-1a.dd: Adjusted.
            * testsuite/ld-x86-64/no-plt-1b.dd: Likewise.
            * testsuite/ld-x86-64/no-plt-1a.dd: Likewise.
            * testsuite/ld-x86-64/no-plt-1b.dd: Likewise.
            * testsuite/ld-x86-64/no-plt-1c.dd: Likewise.
            * testsuite/ld-x86-64/no-plt-1d.dd: Likewise.
            * testsuite/ld-x86-64/no-plt-1e.dd: Likewise.
            * testsuite/ld-x86-64/no-plt-1f.dd: Likewise.
            * testsuite/ld-x86-64/no-plt-1g.dd: 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