This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: PATCH: Malloc fails if MALLOC_ALIGNMENT > 2 * SIZE_SZ
- From: "H.J. Lu" <hjl dot tools at gmail dot com>
- To: Roland McGrath <roland at hack dot frob dot com>
- Cc: GNU C Library <libc-alpha at sourceware dot org>, Daniel Jacobowitz <dan at codesourcery dot com>
- Date: Fri, 19 Aug 2011 15:48:20 -0700
- Subject: Re: PATCH: Malloc fails if MALLOC_ALIGNMENT > 2 * SIZE_SZ
- References: <20110819223919.GA2708@intel.com><20110819224428.3FBCD2C0F7@topped-with-meat.com>
On Fri, Aug 19, 2011 at 3:44 PM, Roland McGrath <roland@hack.frob.com> wrote:
> Can one of you explain how this avoids the problem mentioned in the removed
> comment, of malloc_get_state/malloc_set_state incompatibility on powerpc32?
>
> I think the main use case for this is an Emacs that was built (and dumped)
> using an older libc, and then run with a newer libc. ?Is it verified that
> an existing powerpc32 Emacs binary is not broken by running against a libc
> with this change?
>
I can't comment on powerpc32. Bit a target shouldn't define
MALLOC_ALIGNMENT > 2 * SIZE_SZ
if it will break binary compatibility.
--
H.J.