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: Wed, 02 Feb 2022 11:12:30 +0000

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

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

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

commit c7c6e55b60b072cdcc5c3fc27164b890a0f34520
Author: Stafford Horne <shorne@gmail.com>
Date:   Wed Feb 2 20:11:56 2022 +0900

    or1k: Avoid R_OR1K_GOT16 signed overflow by using special howto

    Previously when fixing PR 21464 we masked out upper bits of the
    relocation value in order to avoid overflow complaints when acceptable.
    It turns out this does not work when the relocation value ends up being
    signed.

    To fix this this patch introduces a special howto with
    complain_on_overflow set to complain_overflow_dont.  This is used in
    place of the normal R_OR1K_GOT16 howto when we detect R_OR1K_GOT_AHI16
    relocations.

    bfd/ChangeLog:

            PR 28735
            * elf32-or1k.c (or1k_elf_got16_no_overflow_howto): Define.
            (or1k_elf_relocate_section): Use new howto instead of trying to
            mask out relocation bits.

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