mirror of https://git.musl-libc.org/git/musl
Browse Source
entry point was wrong for PIE. e_entry was being treated as an absolute value, whereas it's actually relative to the load address (which is zero for non-PIE). phdr pointer was wrong for non-PIE. e_phoff was being treated as load-address-relative, whereas it's actually a file offset in the ELF file. in any case, map_library was already computing it correctly, and the incorrect code in __dynlink was overwriting it with junk.rs-1.0
1 changed files with 1 additions and 3 deletions
Loading…
Reference in new issue