Messages in this thread | | | Date | Mon, 09 Aug 1999 23:02:31 +0200 | From | Joerg Pommnitz <> | Subject | Re: PATCH: please backout this set of broken changes |
| |
Horst von Brand wrote: > > > 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.
But this reintroduces some kind of #ifdef (probably in the dependency description file) that Linus' change was supposed to remove. You need a way to find out about the init functions that are actually part of the configured kernel. Linus' ld magic does this without having to keep track about the included drivers.
- 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/
| |