mirror of
git://git.musl-libc.org/musl
synced 2025-01-11 00:59:46 +00:00
2f1f51ae7b
in the case where malloc is being replaced, it's not valid to call malloc between final relocations and main app's crt1 entry point; on fdpic archs the main app's entry point will not yet have performed the self-fixups necessary to call its code. to fix, reorder queue_ctors before final relocations. an alternative solution would be doing the allocation from __libc_start_init, after the entry point but before any ctors run. this is less desirable, since it would leave a call to malloc that might be provided by the application happening at startup when doing so can be easily avoided. |
||
---|---|---|
.. | ||
dlstart.c | ||
dynlink.c |