This is the mail archive of the
elfutils-devel@sourceware.org
mailing list for the elfutils project.
Re: [PATCH] libelf: Use posix_memalign instead of aligned_alloc.
- From: Mark Wielaard <mark at klomp dot org>
- To: elfutils-devel at sourceware dot org
- Date: Wed, 13 Mar 2019 13:55:21 +0100
- Subject: Re: [PATCH] libelf: Use posix_memalign instead of aligned_alloc.
- References: <1551976501-12590-1-git-send-email-mark@klomp.org>
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.