bug-binutils
[Top][All Lists]
Advanced

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

[Bug ld/25258] RISC-V: relocation truncated to fit: R_RISCV_GPREL_I agai


From: wilson at gcc dot gnu.org
Subject: [Bug ld/25258] RISC-V: relocation truncated to fit: R_RISCV_GPREL_I against `.LANCHOR2'
Date: Tue, 10 Dec 2019 19:57:12 +0000

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

Jim Wilson <wilson at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |wilson at gcc dot gnu.org

--- Comment #1 from Jim Wilson <wilson at gcc dot gnu.org> ---
This is a code size optimization, primarily useful for deeply embedded targets
that care the most about code size.  It is OK to disable it for unix targets.

There was one regression reported against linux that was fixed by this patch.
    2019-08-01  Ilia Diachkov  <address@hidden>
        * elfnn-riscv.c (_bfd_riscv_relax_lui): Set lui relax safety area to
        two pages in relro presence.
Do you have this patch in your binutils release?  This doesn't appear to be
directly relevant to your problem, but maybe we need a similar fix elsewhere.

Otherwise, I don't have a riscv freebsd system for testing, so I'm probably
going to have trouble reproducing this.  I will have to try to set up a usable
riscv freebsd system, but I have a lot of other things to do, so it might take
some time.

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