mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: "David S. Miller" <davem@davemloft.net>
To: linux-kernel@vger.kernel.org
Subject: non-versioned module symbols
Date: Thu, 06 Oct 2005 00:16:33 -0700 (PDT)	[thread overview]
Message-ID: <20051006.001633.108931223.davem@davemloft.net> (raw)


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.


                 reply	other threads:[~2005-10-06  7:16 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20051006.001633.108931223.davem@davemloft.net \
    --to=davem@davemloft.net \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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®