static binary, dlopen, and ifunc

Andreas Schwab schwab@linux-m68k.org
Fri Nov 13 15:16:03 GMT 2020


On Nov 13 2020, Samuel Thibault via Libc-alpha wrote:

> I realize something: libc.so "NEED"s libmachuser.so for the RPC stubs.

Does that mean you have a dependency cycle?

> So I guess the linker is here relocating libmachuser.so first, and here
> trying to select for __stpncpy before libc.so is relocated. I guess I
> need a way to make libmachuser.so only use non-ifunc functions so its
> relocation can proceed before that of libc.so.

Like rtld-foo sources for ld.so, you need libmachuser-foo sources that
explicitly do not use ifunc.

Andreas.

-- 
Andreas Schwab, schwab@linux-m68k.org
GPG Key fingerprint = 7578 EB47 D4E5 4D69 2510  2552 DF73 E780 A9DA AEC1
"And now for something completely different."


More information about the Libc-alpha mailing list