bug-binutils
[Top][All Lists]
Advanced

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

[Bug ld/20244] ld fails to handle "op $imm, address@hidden"


From: cvs-commit at gcc dot gnu.org
Subject: [Bug ld/20244] ld fails to handle "op $imm, address@hidden"
Date: Sun, 12 Jun 2016 04:25:07 +0000

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

--- Comment #1 from cvs-commit at gcc dot gnu.org <cvs-commit at gcc dot 
gnu.org> ---
The master branch has been updated by H.J. Lu <address@hidden>:

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

commit 74d7f0aa5b1e27da215349fb32337e1d83aca7d7
Author: H.J. Lu <address@hidden>
Date:   Sat Jun 11 20:44:24 2016 -0700

    Subtract GOT base only with a base register

    When relocating R_386_GOT32 in "op $0, address@hidden", we shouldn't 
subtract
    GOT base without a base register and we should disallow it without a
    base register for PIC.

    bfd/

        PR ld/20244
        * elf32-i386.c (elf_i386_relocate_section): When relocating
        R_386_GOT32, return error without a base register for PIC and
        subtract the .got.plt section address only with a base register.

    ld/

        PR ld/20244
        * testsuite/ld-i386/i386.exp: Run pr20244-1a and pr20244-1b.
        * testsuite/ld-i386/pr20244-1.s: New file.
        * testsuite/ld-i386/pr20244-1a.d: Likewise.
        * testsuite/ld-i386/pr20244-1b.d: Likewise.
        * testsuite/ld-i386/pr20244-1c.d: Likewise.

-- 
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]