That's actually a really good idea, I completely forgot to limit the selection to supported architectures. I'll test that change right away!
On Fri, Jul 15, 2022 at 12:45 PM Lance Fredrickson <[email protected]> wrote: > 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 -- [email protected] > > To unsubscribe send an email to [email protected] > > _______________________________________________ > devel mailing list -- [email protected] > To unsubscribe send an email to [email protected] >
_______________________________________________ devel mailing list -- [email protected] To unsubscribe send an email to [email protected]
