> > People need to re-order the makefile or similar. I'm not adding complexity
> > to just handle simple ordering.
> No more complexity to the kernel or to the build process?
> If you don't care for the build process, here is an idea:
>
> 1.) The linker collects all the init-calls in a special section.
> 2.) We can access this section with objcopy.
>
> Idea: extract the section from the final vmlinux file,
> perform a topological sort according to some kind of
> description file and put the section back into the binary.
Better: do the topologcal sorting, and from the results write a C file that
does the calls in proper order. Not dependent on any black obj-magic, can
all be done __init and loose it at boot.
-- Dr. Horst H. von Brand mailto:vonbrand@inf.utfsm.cl Departamento de Informatica Fono: +56 32 654431 Universidad Tecnica Federico Santa Maria +56 32 654239 Casilla 110-V, Valparaiso, Chile Fax: +56 32 797513- 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/