riscv: Initialize $gp before resolving the IRELATIVE relocation
authorVincent Chen <vincent.chen@sifive.com>
Tue, 15 Dec 2020 09:16:40 +0000 (17:16 +0800)
committerDJ Delorie <dj@redhat.com>
Mon, 11 Jan 2021 02:25:16 +0000 (21:25 -0500)
commit313bfd505e7c6a70c508ba9b2e2c0ff6e901c2a0
tree6d1e34ef9b63bd754ab44ebfcd40121d74dc3a4e
parentc31b1f52311e10a37b85604b43de81dff205637e
riscv: Initialize $gp before resolving the IRELATIVE relocation

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.
sysdeps/riscv/dl-machine.h