x86_64: Is it possible to “in-line substitute” PLT/GOT references?
This optimization has since been implemented in GCC. It can be enabled with the -fno-plt option and the noplt function attribute: Do not use the PLT for external function calls in position-independent code. Instead, load the callee address at call sites from the GOT and branch to it. This leads to more efficient code by … Read more