LoongArch: Add static PIE support
commit8b10727a9af3e2aa4b27dff0116bb8d3c9afce3d
authorXi Ruoyao <xry111@xry111.site>
Sat, 24 Sep 2022 07:45:34 +0000 (24 15:45 +0800)
committercaiyinyu <caiyinyu@loongson.cn>
Fri, 30 Sep 2022 03:51:58 +0000 (30 11:51 +0800)
treeca69377c35c0950a0cb5409c4eb558840734be23
parent5eb21c62cea9e5879e7637ac6713ba2cb5993ca5
LoongArch: Add static PIE support

If the compiler is new enough, enable static PIE support.  In the static
PIE version of _start (in rcrt1.o), use la.pcrel instead of la.got
because in a static PIE we cannot use GOT entries until the dynamic
relocations for GOT are resolved.
sysdeps/loongarch/configure
sysdeps/loongarch/configure.ac
sysdeps/loongarch/start.S