[PATCH] use 8 byte alignment in _dl_malloc
Joakim Tjernlund
joakim.tjernlund at transmode.se
Sat Feb 17 16:49:01 UTC 2007
> -----Original Message-----
> From: Atsushi Nemoto [mailto:anemo at mba.ocn.ne.jp]
> Sent: den 17 februari 2007 17:38
> To: joakim.tjernlund at transmode.se
> Cc: ppanbura at yahoo.com; uclibc at uclibc.org
> Subject: Re: [PATCH] use 8 byte alignment in _dl_malloc
>
> On Sat, 17 Feb 2007 17:10:27 +0100, "Joakim Tjernlund"
> <joakim.tjernlund at transmode.se> wrote:
> > Add this in a common header
> > #ifndef DL_MALLOC_ALIGN
> > #define DL_MALLOC_ALIGN 4
> > #endif
> > Then change
> > _dl_malloc_addr = (unsigned char *) (((unsigned long)
> _dl_malloc_addr + DL_MALLOC_ALIGN - 1) & ~(DL_MALLOC_ALIGN - 1));
> > Now you can change DL_MALLOC_ALIGN in your arch headers
> >
> > or like your first patch.
>
> Thank you, third trial. I hope everybody feel good with this.
Almost, the ifndef part should go into a header file, like dl-defs.h
I think. Add an comment too for clarity.
Jocke
More information about the uClibc
mailing list