Re: The magical mystical changing ethernet interface order

Dave Hansen (haveblue@us.ibm.com)
Wed, 07 May 2003 15:28:08 -0700


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

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