What is (special in) the elf format for static-pie? And what preforms the fixups to the GOT?

68 Views Asked by At

I'm trying to create some static-pie programs to run in a no-MMU environment.

As far as I can tell static-pie programs are encoded in the ELF format, but use the ET_DYN e_type in their ELF header. However, they are not dynamically linked. They are statically linked. So how is that encoded into the ELF header? The Kernel would need to know that during load.

Furthermore, I would expect the Linux Kernel to preform the fix-ups to the Global Offset Table (GOT) since we are not using a dynamic loader, but I want to confirm this?

There seems to be very little good information on this from normal searches and I'm not sure what manuals to be looking at. Thank you.

0

There are 0 best solutions below