[PATCH v3] RISC-V: Fix IFUNC resolver cannot access gp pointer
Kito Cheng
kito.cheng@gmail.com
Mon Feb 24 07:47:31 GMT 2025
Hi everyone:
I support this approach rather than adding DT_RISCV_GP_VALUE, I
cooperated with YangYu to try that approach, and found that basically
repeat the code as checking "__global_pointer$" and then initialize
the gp.
As Yangyu mentioned before, we have mandatory "__global_pointer$"
symbol[1] must be exported if executables has enabled GP relaxation,
so I think it enough guarantee from the psABI aspec.
[1] https://github.com/riscv-non-isa/riscv-elf-psabi-doc/pull/215
On Tue, Feb 11, 2025 at 3:40 PM Yangyu Chen <cyy@cyyself.name> wrote:
>
> Friendly ping.
>
More information about the Libc-alpha
mailing list