Re: The magical mystical changing ethernet interface order

Dave Hansen
2003-05-07T22:17:03Z

Andrew Morton wrote:
> Russell King <rmk@arm.linux.org.uk> wrote:
>
>>A wild stab in the dark, I'd think maybe the init ordering changed:
>
> Well stabbed. The relative ordering of tulip and ne2k in
> drivers/net/Makefile got changed.
>
> Maybe we should reorganise the 2.5 Makefile to copy the 2.4 Makefile's
> ordering. How pleasant.
>
> I suspect the linker is at liberty to reorder these anyway.

The linker will order things in the final object in the order that you
passed them. We depend on this for getting __init functions run in the
right order:
http://groups.google.com/groups?selm=linux.kernel.27361.1016068035%40kao2.melbourne.sgi.com

--
Dave Hansen
haveblue@us.ibm.com