I'm super excited to see this! Was just thinking about asking the mailing about static pie. Looking at the code I wonder if the depends line should look something like this.

depends on DOPIC && (TARGET_arm || TARGET_i386 || TARGET_x86_64)

So that only those arches can select it.

Lance
On 7/14/2022 2:11 PM, linted wrote:
Hello,
I implemented support for static pie generation on i386, x86_64, and arm.

This patch adds the generation of rcrt1.o which is used by gcc when compiling with the --static-pie flag. The main difference in rcrt1.o is that it is required to perform dynamic relocations which would normally occur in ldso. The new reloc_static_pie function handles parsing the elf headers, locating the dynamic section, and performing the relocations.

_______________________________________________
devel mailing list -- devel@uclibc-ng.org
To unsubscribe send an email to devel-le...@uclibc-ng.org

_______________________________________________
devel mailing list -- devel@uclibc-ng.org
To unsubscribe send an email to devel-le...@uclibc-ng.org

Reply via email to