Re: Can't get EXPORT_SYMBOL() to work
Andi Kleen (ak@muc.de)
19 Oct 1999 13:55:28 +0200
mbeattie@sable.ox.ac.uk (Malcolm Beattie) writes:
>
> The link step for vmlinux takes all the various .a files and the
> various .o files and link them all togther, but the exported symbols
> are gone. The only thing I can think of is that it may be that
> because nothing else ever mentions the symbols that the linker
> decides not to incorporate them. But surely there must be other
> functions which the kernel makes available for modules only and
> such like? Please can someone let me know how to get EXPORT_SYMBOL()
> working? I can make the source available if anyone thinks it will
> help but I'll be announcing what this all about soon anyway and don't
> particularly want to duplicate it.
You could make sure that the source file with the exported symbols
has at least one symbol that is referenced by the static kernel. The linker
can only throw away complete object files or sections. If one symbol
is referenced it can't.
-Andi
--
This is like TV. I don't like TV.
-
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/