[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <1156440307.3012.165.camel@pmac.infradead.org>
Date: Thu, 24 Aug 2006 18:25:07 +0100
From: David Woodhouse <dwmw2@...radead.org>
To: Arnd Bergmann <arnd.bergmann@...ibm.com>
Cc: devel@...top.org, Jan Engelhardt <jengelh@...ux01.gwdg.de>,
linux-tiny@...enic.com, linux-kernel@...r.kernel.org
Subject: Re: [OLPC-devel] Re: [PATCH 0/4] Compile kernel with
-fwhole-program --combine
On Thu, 2006-08-24 at 19:15 +0200, Arnd Bergmann wrote:
> It's probably true, but the way it's done today gave us CONFIG_MODVERSIONS
> and EXPORT_SYMBOL_GPL, which would break when turning EXPORT_SYMBOL into a
> simple __attribute__().
ELF can do symbol versioning too. But I don't really see a simple way to
make normal ELF linking work with a kernel like that. The vmlinux ELF
file is long gone by the time the kernel boots -- it needs its own
mechanism for managing its symbols anyway; its own internal dynamic
linker. I suppose you _could_ make it work from the standard ELF linkage
but I don't think it'd be fun.
ObMODVERSIONS: Forgot to mention that my makefile hacks for --combine
break that completely. It tries to preprocess all the files together
with 'gcc -E -D__GENKSYMS__ *.c' -- and you can't do that.
--
dwmw2
-
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