[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <AANLkTimH-p5muib3-3sPWySFpQN7eLXf9KsCb_f0r9gw@mail.gmail.com>
Date: Tue, 25 May 2010 21:50:34 +0200
From: Geert Uytterhoeven <geert@...ux-m68k.org>
To: Mike Frysinger <vapier@...too.org>
Cc: uclinux-dev@...inux.org, David Howells <dhowells@...hat.com>,
David McCullough <davidm@...pgear.com>,
Greg Ungerer <gerg@...inux.org>,
Paul Mundt <lethal@...ux-sh.org>,
uclinux-dist-devel@...ckfin.uclinux.org,
microblaze-uclinux@...e.uq.edu.au, Michal Simek <monstr@...str.eu>,
linux-m32r@...linux-m32r.org,
Hirokazu Takata <takata@...ux-m32r.org>,
linux-kernel@...r.kernel.org,
Yoshinori Sato <ysato@...rs.sourceforge.jp>,
Jie Zhang <jie.zhang@...log.com>
Subject: Re: [PATCH] FLAT: allow arches to declare a larger alignment than the
slab
On Tue, May 25, 2010 at 21:24, Mike Frysinger <vapier@...too.org> wrote:
> From: Jie Zhang <jie.zhang@...log.com>
>
> The recent commit 1f0ce8b3dd667dca7 which moved the ARCH_SLAB_MINALIGN
> default into the global header inadvertently broke FLAT for a bunch of
> systems. Blackfin systems now fail on any FLAT exec with:
> Unable to read code+data+bss, errno 14
> When your /init is a FLAT binary, obviously this can be annoying ;).
>
> This stems from the alignment usage in the FLAT loader. The behavior
> before was that FLAT would default to ARCH_SLAB_MINALIGN only if it was
> defined, and this was only defined by arches when they wanted a larger
> alignment value. Otherwise it'd default to pointer alignment. Arguably,
^^^^^^^^^^^^^^^^^
That would be __alignof__(void *)
> +#elif defined(ARCH_SLAB_MINALIGN)
> #define FLAT_DATA_ALIGN (ARCH_SLAB_MINALIGN)
> #else
> #define FLAT_DATA_ALIGN (sizeof(void *))
Not sizeof(void *)
Gr{oetje,eeting}s,
Geert
--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@...ux-m68k.org
In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
-- Linus Torvalds
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists