musl - musl - an implementation of the standard library for Linux-based systems

index : musl
musl - an implementation of the standard library for Linux-based systems
summary refs log tree commit diff
path: root/src/stdlib/strtol.c
diff options
context:
space:
mode:
authorRich Felker <dalias@aerifal.cx>2013年07月26日 14:25:51 -0400
committerRich Felker <dalias@aerifal.cx>2013年07月26日 14:25:51 -0400
commit876748ead3de7798623c09af835a4b56dcc28e0f (patch)
treed15d30c3b088e55ded494a437923448072df46ca /src/stdlib/strtol.c
parent16ac00ac46a14a568ce836db09ffc3f21799690d (diff)
downloadmusl-876748ead3de7798623c09af835a4b56dcc28e0f.tar.gz
fix computation of entry point and main app phdrs when invoking via ldso
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.
Diffstat (limited to 'src/stdlib/strtol.c')
0 files changed, 0 insertions, 0 deletions
generated by cgit v1.2.1 (git 2.18.0) at 2025年10月08日 17:54:55 +0000

AltStyle によって変換されたページ (->オリジナル) /