A look at dynamic linking
A look at dynamic linking
Posted Feb 13, 2024 16:04 UTC (Tue) by abatters (✭ supporter ✭, #6932)Parent article: A look at dynamic linking
https://gcc.gnu.org/onlinedocs/gcc-13.2.0/gcc/Common-Func...
Posted Feb 14, 2024 12:50 UTC (Wed)
by nix (subscriber, #2304)
[Link] (2 responses)
As an aside, there are fairly harsh restrictions on what ifuncs can do -- notably, since they're called in the middle of dynamic symbol resolution, they can't call anything else which might go through the dynamic linker, which more or less means static functions only.
Posted Feb 17, 2024 8:33 UTC (Sat)
by fw (subscriber, #26023)
[Link] (1 responses)
In practice, this does not always work with symbol interposition, which is not refected in the
Posted Feb 21, 2024 12:19 UTC (Wed)
by nix (subscriber, #2304)
[Link]
A look at dynamic linking
Some targets require relocation processing for static functions and global data access, too.
The way that this is supposed to work is that objects make their dependencies explicit using A look at dynamic linking
DT_NEEDED
. This way, the dynamic linker can compute a relocation order that processes the object containing the IFUNC before the object that invokes.
DT_NEEDED
dependencies:
A look at dynamic linking