Re: More linker magic..

Andi Kleen (ak@muc.de)
Tue, 3 Aug 1999 23:20:23 +0200


On Tue, Aug 03, 1999 at 10:28:54PM +0200, Linus Torvalds wrote:
> > no driver changes mandate for 2.4 conflicts with it of course):
>
> I've already fixed that in my tree.
>
> > Modular and compiled in drivers use different initialisation mechanisms
> > (which leads to subtle bugs all the time).
>
> Not if done right. You CAN still do them differently, but I changed a few
> drivers to not have a single #ifdef MODULE, and I hope it takes off.
>
> The fact is, that modules and non-modules _are_ going to be subtly
> different, but we can make the differences as small as possible.
>
> I'll make a pre-4 so that you can comment on some of the modules (look at
> "binfmt_elf.c" for example).

Cool. Your solution beat my complicated proposal with its simplicity
and elegance by large. Looks fine for me.

Automatic init order computation with symbols at compile time wasn't that
great a idea anyways, if I think deeper about it (because the C namespace is
flat, and with facts like isdn4linux declaring "dev" as a global variable it
could have lead to some problems)

So letting a human handle that via the Makefile is probably safer.

-Andi

-- 
This is like TV. I don't like TV.

- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu Please read the FAQ at http://www.tux.org/lkml/