Semantic interposition
The ELF rule that an exported function in a shared library may be swapped out at load time, and so must not be optimised as if it were known.
The dynamic linker resolves symbols in order: executable first, then libraries. If the executable or an LD_PRELOAD library defines a function with the same name, it wins — even for calls from inside the original library. That's how you replace malloc without recompiling anything. It also ties the compiler's hands: when building a library with -fPIC it may not inline one exported function into another, because the one eventually called might not be the one in the source.
GCC 5 added -fno-semantic-interposition in 2015, letting the compiler ignore the possibility. Python 3.10 is built with it and got up to 30 percent faster, mostly because the interpreter core lives in libpython. Hidden symbol visibility buys the same freedom without bending the rule.