RISC-V: Broken relax when symbol versioning used

Alexander von Gluck IV kallisti5@unixzen.com
Wed Sep 1 21:20:25 GMT 2021


September 1, 2021 1:08 PM, "Andreas Schwab" <schwab@linux-m68k.org> wrote:
> On Sep 01 2021, Alexander von Gluck IV wrote:
> 
>> We're seeing an issue over on the Haiku RISCV64 port when using symbol versioning (".symver") and
>> -mrelax enabled.
>> When the above is true, Invalid PC-relative offsets appear at the link stage, object files produced
>> by compiler have correct offsets however.
>> 
>> Anyone know what could be causing this? binutils 2.36.1.
> 
> This is probably
> <https://sourceware.org/bugzilla/show_bug.cgi?id=28021>, fixed in commit
> 235f5ef4a6b.

Nice catch!!!

I back-ported this fix to our 2.36.1 branch and the issue resolved itself.

Thanks!

 -- Alex


More information about the Binutils mailing list