Re: [PATCH] libelf: Use posix_memalign instead of aligned_alloc.

2019-03-13 Thread Mark Wielaard
On Thu, 2019-03-07 at 17:35 +0100, Mark Wielaard wrote: > 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. Pushed to master.

[PATCH] libelf: Use posix_memalign instead of aligned_alloc.

2019-03-07 Thread Mark Wielaard
Older glibc might not 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 --- libelf/ChangeLog | 5 + libelf/elf32_updatefile.c | 20