public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* krnl newbie: problems with EXPORT_SYMBOL()
@ 2001-01-17 18:18 Michael Palme
  2001-01-21 10:21 ` Keith Owens
  0 siblings, 1 reply; 2+ messages in thread
From: Michael Palme @ 2001-01-17 18:18 UTC (permalink / raw)
  To: linux-kernel

hello...

ive got a problem with the EXPORT_SYMBOL() macro. i have 2 modules. one of
them uses functions which the other module exports . everything works fine
as long as i leave the symbols global which i want to export in the
exporting module. i want to use EXPORT_SYMBOL() for this task, so that i
can use global symbols without them beeing exported to the kernel symbol
table (i cant use static declaration cause i need some global vars). now
when i try to use it this way (compile is a success) the other module cant
find the external references anymore. EXPORT_SYMBOL_NOVERS() works.

-----can be ignored ------
i think it has something to do with the version information on symbols . i
havent declared MODVERSIONS or included linux/modversions.h. if i use
"nm" on the module object file i get the right name for the symbols like:
000000  D symbol_exported
but after insmoding it and trying "ksyms" it is reported as:
d801e0dc  symbol_exported_R__symbol_exported
when i use global symbols or EXPORT_SYMBOLS_NOVERS() it is normal:
d801e0dc  symol_exported
i think this _R_xxx could be the reason that the other module cant find
the symbol ??? But i also read insmod manpage and they said if modules are
compiled without versioning the CRC information on symbols will be ignored
??? ok it is no real CRC info in this case but i think the whole string
after_R will be ignored ??? i also read linux/modules.h and i wondered
about the way EXPORT_SYMBOLS is handled if no versioning is used. for this
case i would have expected that its behaviour is like
EXPORT_SYMBOLS_NOVERS.
-------------------------
i really want to get EXPORT_SYMBOLS working.
Could somebody help me please!!!!!!!!

Thanks in advance...Michael Palme

im sorry when suggestions are wrong but i havent much knowledge off the
internals.

P.S.: I ran kernel 2.2.14, 2.2.16, 2.2.18, 2.4.0 (i tried kernels with and
without version information on modules) and tested modutils 2.3.19 and
2.4.1; gcc is 2.95.2 machine x86

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: krnl newbie: problems with EXPORT_SYMBOL()
  2001-01-17 18:18 krnl newbie: problems with EXPORT_SYMBOL() Michael Palme
@ 2001-01-21 10:21 ` Keith Owens
  0 siblings, 0 replies; 2+ messages in thread
From: Keith Owens @ 2001-01-21 10:21 UTC (permalink / raw)
  To: Michael Palme; +Cc: linux-kernel

On Wed, 17 Jan 2001 19:18:40 +0100 (MET), 
Michael Palme <962etmp@stud.fh-jena.de> wrote:
>ive got a problem with the EXPORT_SYMBOL() macro.
>d801e0dc  symbol_exported_R__symbol_exported

FAQ alert!  http://www.tux.org/lkml/#s8-8

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2001-01-21 10:22 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-01-17 18:18 krnl newbie: problems with EXPORT_SYMBOL() Michael Palme
2001-01-21 10:21 ` Keith Owens

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