Re: Undefined symbols in 2.6.11-rc5-mm1

From: Adrian Bunk
Date: Thu Mar 03 2005 - 08:48:31 EST


On Wed, Mar 02, 2005 at 08:28:46AM -0800, Andrew Morton wrote:
> Adrian Bunk <bunk@xxxxxxxxx> wrote:
> >
> > > In lib/Makefile, remove parser.o from the lib-y: rule and add
> > >
> > > obj-y += parser.o
> >
> > This I didn't find.
> >
> > Is it really the intention to silently omit objects that are not
> > referenced or could this be changed?
>
> In some cases, yes, it it desirable. For example, lib/extable.c provides a
> default implementation of an exception table sorter but if the architecture
> defies its own, the linker will skip the default version in lib/.
>
> At least, that's what the thinking was a few years ago. But it's such a
> special-case that we can probably forget about it and just drive the build
> and linkage with config now.
>...

lib/extable.c already uses two ARCH_HAS_* defines, simply because the
linker couldn't help if only one of two functions in a file were needed.

cu
Adrian

--

"Is there not promise of rain?" Ling Tan asked suddenly out
of the darkness. There had been need of rain for many days.
"Only a promise," Lao Er said.
Pearl S. Buck - Dragon Seed

-
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/