by Arnt · 5y ago · 0 comments
Shared libraries (at least with ELF) requires fixups, which involve COW and a considerable number of per-process pages. Compiling with -fPIC reserves one register, which isn't a problem unless you're on a register-starved CPU, which is all of them.
You can avoid load-time fixups via prelinking.
Really? None of the 64 bit ISAs seem particularly starved, especially not aarch64.
https://en.wikichip.org/wiki/arm_holdings/microarchitectures...