bug-binutils
[Top][All Lists]
Advanced

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

[Bug ld/19969] ld fails to detect run-time relocation overflow


From: cvs-commit at gcc dot gnu.org
Subject: [Bug ld/19969] ld fails to detect run-time relocation overflow
Date: Wed, 20 Apr 2016 18:11:41 +0000

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

--- 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=338c190a92871c063847caef51bdc066372d4550

commit 338c190a92871c063847caef51bdc066372d4550
Author: H.J. Lu <address@hidden>
Date:   Wed Apr 20 11:10:21 2016 -0700

    Check run-time R_X86_64_32 relocation overflow

    Since elf_x86_64_check_relocs is called after opening all input files,
    we can detect dynamic R_X86_64_32 relocation overflow there.

    bfd/

        PR ld/19969
        * elf64-x86-64.c (check_relocs_failed): New.
        (elf_x86_64_need_pic): Moved before elf_x86_64_check_relocs.
        Support relocation agaist local symbol.  Set check_relocs_failed.
        (elf_x86_64_check_relocs): Use elf_x86_64_need_pic.  Check
        R_X86_64_32 relocation overflow.
        (elf_x86_64_relocate_section): Skip if check_relocs failed.
        Update one elf_x86_64_need_pic and remove one elf_x86_64_need_pic.

    ld/

        PR ld/19969
        * testsuite/ld-x86-64/pr19969.d: New file.
        * testsuite/ld-x86-64/pr19969a.S: Likewise.
        * testsuite/ld-x86-64/pr19969b.S: Likewise.
        * testsuite/ld-x86-64/x86-64.exp: Run pr19969 tests.

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