mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* non-versioned module symbols
@ 2005-10-06  7:16 David S. Miller
  0 siblings, 0 replies; only message in thread
From: David S. Miller @ 2005-10-06  7:16 UTC (permalink / raw)
  To: linux-kernel


Is there a way to get specific module symbols to be
non-versioned in current 2.6.x?

The case I need it for is _mcount calls generated by the
"-pg" option to the build.  We can't rewrite the symbol
reference using cpp magic since GCC generates this call
internally.

It was EXPORT_SYMBOL_NOVERS() in 2.4.x, but somewhere along
the line that facility got deleted and the _mcount export
in arch/sparc64/kernel/sparc64_ksyms.c got changed to a
plain EXPORT_SYMBOL() which does not work:

*** Warning: "_mcount" [sound/sparc/snd-sun-cs4231.ko] undefined!
*** Warning: "_mcount" [sound/soundcore.ko] undefined!
*** Warning: "_mcount" [sound/pci/ali5451/snd-ali5451.ko] undefined!
...

etc.

Yes, I can turn MODVERSIONS off while I do this debugging.
But I don't consider that a full solution.


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2005-10-06  7:16 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-10-06  7:16 non-versioned module symbols David S. Miller

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®