[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug #62422] vacall test fails with PIE-enabled GCC on RISC-V systems
From: |
Bruno Haible |
Subject: |
[bug #62422] vacall test fails with PIE-enabled GCC on RISC-V systems |
Date: |
Sun, 8 May 2022 08:29:28 -0400 (EDT) |
Update of bug #62422 (project libffcall):
Status: None => Fixed
Assigned to: None => haible
Open/Closed: Open => Closed
_______________________________________________________
Follow-up Comment #1:
Thanks for the report.
> by appending "-no-pie" flag in makefile
This wouldn't solve the problem when the library is being used in an
executable that is being built with -fpie.
> changing %hi/%lo pairs to %pcrel_hi/%pcrel_lo
I don't know enough about RISC-V. I thought that transforming non-PIC to PIC
code implied replacing one instruction
lui a5,addr
with two instructions
auipc a5,addr@got
ld a5,0(a5)
> adding PIC support by mimicking arm/armhf change from the 2.1 release
A good idea; thanks! I'm taking this approach. Please try this tarball:
https://alpha.gnu.org/gnu/libffcall/libffcall-2.4-20220508.tar.gz
_______________________________________________________
Reply to this item at:
<https://savannah.gnu.org/bugs/?62422>
_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/