shouldn't asm-generic/barebox.lds.h be arch-independent?
Robert P. J. Day
rpjday at crashcourse.ca
Sun Nov 18 13:31:06 EST 2012
there is one more oddity(?) with the way the linker "lds" files are
set up. if i read this correctly (and i could be wrong), here's
arch/x86/lib/barebox.lds.S:
#undef i386
#include <asm-generic/barebox.lds.h>
which gets us to that included file, which contains:
#if defined CONFIG_ARCH_IMX25 || \
defined CONFIG_ARCH_IMX35 || \
defined CONFIG_ARCH_IMX51 || \
defined CONFIG_ARCH_IMX53 || \
defined CONFIG_ARCH_IMX6 || \
defined CONFIG_X86 || \ <-- that will be true, correct?
defined CONFIG_ARCH_EP93XX
#include <mach/barebox.lds.h>
#endif
which finally takes us to
arch/x86/mach-i386/include/mach/barebox.lds.h, which is nothing more
than a collection of macro definitions. there's no "pre-image"
content to be incorporated into the final image -- it's just
preprocessor content. so why isn't all that simply at the beginning
of the main x86 barebox.lds.S file?
or am i missing something?
rday
--
========================================================================
Robert P. J. Day Ottawa, Ontario, CANADA
http://crashcourse.ca
Twitter: http://twitter.com/rpjday
LinkedIn: http://ca.linkedin.com/in/rpjday
========================================================================
More information about the barebox
mailing list