Re: [PATCH] Module alias and device table support.

Kai Germaschewski
2003-02-01T02:49:41Z

On Sat, 1 Feb 2003, Roman Zippel wrote:

> > > > missing
> > > > EXPORT_SYMBOL()s tend to go unnoticed quite often otherwise.
> > >
> > > The problem here is that we use System.map, it's not that difficult to
> > > extract the exported symbols:
> > > objcopy -j .kstrtab -O binary vmlinux .export.tmp
> > > tr \\0 \\n < .export.tmp > Export.map
> >
> > What you say is right (except that it misses symbols exported from
> > modules), but I don't see what you mean the problem is?
>
> See above, maybe I quoted to much. The other exported symbols are
> already extracted by depmod, so it had exactly the information it needs
> and would give more correct warnings.

The exported symbols can be extracted just as easily from System.map as
from vmlinux, so I think I still don't understand your point. (And chances
are higher that System.map is in /boot than an uncompressed vmlinux).

depmod does give correct warnings, but only at modules install time, not
at modules build time, that's what I was trying to say.

--Kai