It would be really nice if there were some easy way for EXPORT_SYMBOL()
to tell the linker "do not repeat *do* *not* GC this".
The only way I can think of is with a macro __export similar to __init
which puts exported symbols in a separate elf section. (So much for
locality.) Then the linker script uses KEEP() on that section. This
would replace the current EXPORT_SYMBOL mechanism, and I don't know
enough about binary formats to know if it could even be gotten to work.
(Asking hackers to use *both* __export *and* EXPORT_SYMBOL would be a
bit much, obviously.) And I haven't even *started* considering what
this might do to genksyms....
Oh well, it was a thought.
Peter
-
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/