mirror of
https://git.musl-libc.org/git/musl
synced 2025-01-06 23:02:10 +03:00
5baf2d92d3
previously, the relative load address was used as the address at which to find the ELF headers. this only works if two conditions are met: ldso is linked to start at a virtual address of 0, and the linker is cooperative and includes the main ELF headers in a loadable segment. while in practice these are always met, modern linkers provide a __ehdr_start symbol pointing to the ELF headers, and can in principle use the reference to this symbol as an indication that they need to be mapped in a segment. this also should make it possible to link for a different starting virtual address, if that's ever desirable. |
||
---|---|---|
.. | ||
dlstart.c | ||
dynlink.c |