]> git.ipfire.org Git - thirdparty/elfutils.git/commit
libelf: Use posix_memalign instead of aligned_alloc.
authorMark Wielaard <mark@klomp.org>
Thu, 7 Mar 2019 16:31:53 +0000 (17:31 +0100)
committerMark Wielaard <mark@klomp.org>
Thu, 7 Mar 2019 16:36:37 +0000 (17:36 +0100)
commit6bd060a23f43a842fbc37dd1bb8d6d7964eda36e
tree0102fcecca8c1d9adcccf2647d5f72bbeeeeabb8
parentff063240ac97302f289b12ac7dff655cdc0d5d70
libelf: Use posix_memalign instead of aligned_alloc.

Older glibc might not have aligned_alloc (it is C11).
Use posix_memalign instead. posix_memalign requires the alignment to
be a multiple of sizeof (void *). So use malloc for smaller alignments.

Signed-off-by: Mark Wielaard <mark@klomp.org>
libelf/ChangeLog
libelf/elf32_updatefile.c