Commit 47013bc92a1d0f71477aa018068b0923fdaf6ccf

Guillem Jover 2017-06-14T01:49:25

Fix broken mmap() usage in nlist() by switching to pread() The offset is not page aligned, which makes mmap() return EINVAL on Linux. Switch to use pread() which handles unaligned offset and non-page sized reads, and because we are already loading parts of the executable by read() calls, so there's not much point in using mmap() anyway.