]> git.ipfire.org Git - thirdparty/elfutils.git/commit
libdwfl: Remove p_align sanity check from elf_from_memory.
authorMark Wielaard <mjw@redhat.com>
Fri, 19 Dec 2014 14:40:16 +0000 (15:40 +0100)
committerMark Wielaard <mjw@redhat.com>
Fri, 19 Dec 2014 17:07:38 +0000 (18:07 +0100)
commit32b6c6aa608d64529e863684d3d7ec3f49afe7fa
tree8a7a3cae8b2ed54e0844dc52dc3be556bdd574e2
parent898ed261444cdd817c2d9b3656209a291eb5e807
libdwfl: Remove p_align sanity check from elf_from_memory.

In commit f15bcd "elf_from_remote_memory should use pagesize, not p_align"
we already relaxed the p_align sanity check to allow alignment of the
segment against the pagesize since that is what the glibc dynamic linker
actually does. But on some architectures the kernel inserts a vdso with
a completely bogus p_align for some PT_LOAD segments. So just drop the
whole sanity check and allow anything since we won't use p_align, but
always already use pagesize anyway.

Signed-off-by: Mark Wielaard <mjw@redhat.com>
libdwfl/ChangeLog
libdwfl/elf-from-memory.c