RISC-V: Enable static-pie.
commite0590f41fe1e7a54169e8f8828efe62b5064139e
authorYanzhang Wang <yanzhang.wang@intel.com>
Tue, 2 Jan 2024 10:54:15 +0000 (2 18:54 +0800)
committerAdhemerval Zanella <adhemerval.zanella@linaro.org>
Fri, 12 Jan 2024 18:11:45 +0000 (12 15:11 -0300)
tree5585d8ce49287d13d69ccb2ee2f95e3546065b47
parent061eaf024470627d835d347860d5f8c59b454d08
RISC-V: Enable static-pie.

This patch referents the commit 374cef3 to add static-pie support. And
because the dummy link map is used when relocating ourselves, so need
not to set __global_pointer$ at this time.

It will also check whether toolchain supports to build static-pie.
Reviewed-by: Adhemerval Zanella <adhemerval.zanella@linaro.org>
sysdeps/riscv/configure
sysdeps/riscv/configure.ac
sysdeps/riscv/dl-machine.h