Re: [PATCH] Use gcc alias instead of assembler aliases for syscalls

From: Al Viro
Date: Tue Aug 06 2013 - 03:40:25 EST


On Tue, Aug 06, 2013 at 08:42:01AM +0200, Andi Kleen wrote:
> On Mon, Aug 05, 2013 at 10:59:49PM -0700, Andrew Morton wrote:
> > On Mon, 5 Aug 2013 15:09:35 -0700 Andi Kleen <andi@xxxxxxxxxxxxxx> wrote:
> >
> > > From: Andi Kleen <ak@xxxxxxxxxxxxxxx>
> > >
> > > Use standard gcc __attribute__((alias(foo))) to define
> > > the syscall aliases instead of custom assembler macros.
> > >
> > > This is far cleaner, and also fixes my LTO kernel build.
> >
> > I wonder what gcc version this was added in. Seems fairly longstanding.
>
> Seems to be already in 2.95, so every kernel compiler

IIRC, there had been some architectures where it didn't work correctly.
I don't remember details, though... Geert?
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/