The $gp register may be used to access the global variable in the PDE program, so the $gp register should be initialized before executing the IFUNC resolver of PDE program to avoid unexpected error occurs.
313bfd505e riscv: Initialize $gp before resolving the IRELATIVE relocation
sysdeps/riscv/dl-machine.h | 22 +++++++++++++++++++++-
1 file changed, 21 insertions(+), 1 deletion(-)
Upstream: sourceware.org