Added support for creation of Static Position-Independent Executables (PIE) on mips
commit365da5ab379a3e38e196cad370695c4b300cfe51
authorlinted <linted@users.noreply.github.com>
Sat, 20 Aug 2022 20:41:38 +0000 (20 16:41 -0400)
committerWaldemar Brodkorb <wbx@openadk.org>
Wed, 7 Sep 2022 06:32:47 +0000 (7 08:32 +0200)
treeaa4eeb3a03c03dcd11570247b328086f2c9208ac
parentd46709504efa46e5b9b52739a48ab61b39fd4971
Added support for creation of Static Position-Independent Executables (PIE) on mips

Updated config to allow compilation of rcrt1.o for mips and modified it's crt1.S to perform relocates in __start.

The mips architecture performs relocations differently then most other architectures. reloc_static_pie was rewritten, taking code from dl-startup.c, in order to perfrom the additional relocations. Modifications were made to mips' dl-startup.h to allow for the use of contained macros without including _start definition.

Signed-off-by: linted <linted@users.noreply.github.com>
extra/Configs/Config.in
ldso/ldso/mips/dl-startup.h
libc/misc/internals/Makefile.in
libc/misc/internals/reloc_static_pie.c
libc/sysdeps/linux/mips/crt1.S