lkml.org 
[lkml]   [1999]   [Aug]   [11]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: 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/

\
 
 \ /
  Last update: 2005-03-22 13:53    [W:0.039 / U:0.480 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site