bug-binutils
[Top][All Lists]
Advanced

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

[Bug ld/21464] relocation truncated to fit: R_OR1K_GOT16 on OpenRISC, wh


From: cvs-commit at gcc dot gnu.org
Subject: [Bug ld/21464] relocation truncated to fit: R_OR1K_GOT16 on OpenRISC, when linking libQtGui.so.4.8.7
Date: Thu, 06 May 2021 11:53:04 +0000

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

--- Comment #22 from cvs-commit at gcc dot gnu.org <cvs-commit at gcc dot 
gnu.org> ---
The or1k-large-fixes branch has been updated by Stafford Horne
<shorne@sourceware.org>:

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

commit 3c3de29b048bca6b4aa4235c647b9328e71801b6
Author: Stafford Horne <shorne@gmail.com>
Date:   Thu May 6 20:51:25 2021 +0900

    or1k: Avoid R_OR1K_GOT16 overflow failures in presence of R_OR1K_GOT_AHI16

    Now that we support R_OR1K_GOT_AHI16 we can relax the R_OR1K_GOT16
    overflow validation check if the section has R_OR1K_GOT_AHI16.

    We cannot simple disable R_OR1K_GOT16 overflow validation as there will
    still be binaries that will have only R_OR1K_GOT16.  The
    R_OR1K_GOT_AHI16 relocation will only be added by GCC when building with
    the option -mcmodel=large.

    This assumes that R_OR1K_GOT_AHI16 will come before R_OR1K_GOT16, which
    is the code pattern that will be emitted by GCC.

    bfd/ChangeLog:

            PR 21464
            * elf32-or1k.c (or1k_elf_relocate_section): Relax R_OR1K_GOT16
            overflow check if we have R_OR1K_GOT_AHI16 followed by
            R_OR1K_GOT16.

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