bug-binutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug ld/28870] relocation R_386_GOT32 against absolute symbol is disallo


From: cvs-commit at gcc dot gnu.org
Subject: [Bug ld/28870] relocation R_386_GOT32 against absolute symbol is disallowed
Date: Tue, 08 Feb 2022 00:12:48 +0000

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

--- Comment #2 from cvs-commit at gcc dot gnu.org <cvs-commit at gcc dot 
gnu.org> ---
The binutils-2_38-branch branch has been updated by H.J. Lu
<hjl@sourceware.org>:

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

commit 3cb97931a4728f652d1030edb9eada62d8ccc605
Author: H.J. Lu <hjl.tools@gmail.com>
Date:   Mon Feb 7 15:22:19 2022 -0800

    i386: Allow GOT32 relocations against ABS symbols

    GOT32 relocations are allowed since absolute value + addend is stored in
    the GOT slot.

    Tested on glibc 2.35 build with GCC 11.2 and -Os.

    bfd/

            PR ld/28870
            * elfxx-x86.c (_bfd_elf_x86_valid_reloc_p): Also allow GOT32
            relocations.

    ld/

            PR ld/28870
            * testsuite/ld-i386/i386.exp: Run pr28870.
            * testsuite/ld-i386/pr28870.d: New file.
            * testsuite/ld-i386/pr28870.s: Likewise.

    (cherry picked from commit 30a954525f4e53a9cd50a1a8a6f201c7cf6595c7)

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


reply via email to

[Prev in Thread] Current Thread [Next in Thread]