mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [Bug 702] New: EXPORT_SYMBOL and depmod don't work well together with GCC 3.2.2
@ 2003-05-11 19:23 Martin J. Bligh
  0 siblings, 0 replies; only message in thread
From: Martin J. Bligh @ 2003-05-11 19:23 UTC (permalink / raw)
  To: linux-kernel

http://bugme.osdl.org/show_bug.cgi?id=702

           Summary: EXPORT_SYMBOL and depmod don't work well together with
                    GCC 3.2.2
    Kernel Version: 2.5.67
            Status: NEW
          Severity: low
             Owner: bugme-janitors@lists.osdl.org
         Submitter: gmmapowell@yahoo.com


Distribution: Redhat, modified
Hardware Environment: i386
Software Environment: GCC 3.2.2, modutils 2.4.25
Problem Description:

Disclaimer: as noted above, I'm using gcc 3.2.2, which isn't the top
recommendation, and I think that's the immediate cause of the problem, but I
think nevertheless GCC 3.2.2 has it right, and we're currently relying on a bug.

When I build modules and pass them to depmod, it gives me a bevy of unresolved
symbols which are found in other modules.  When I do an nm on them, I get
something like the following:

00000028 ? __ksymtab_NS8390_init
00000008 ? __ksymtab_ei_close
00000010 ? __ksymtab_ei_interrupt
00000000 ? __ksymtab_ei_open
00000018 ? __ksymtab_ei_tx_timeout
00000020 ? __ksymtab_ethdev_init

When depmod comes across these, it does not accept them because of the line 

if (objsym->secidx == ksymtab &&
    ELFW(ST_BIND)(objsym->info) == STB_GLOBAL)

and these symbols _aren't_ global because in the header file linux/module.h they
are defined as static.


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

only message in thread, other threads:[~2003-05-11 21:25 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-05-11 19:23 [Bug 702] New: EXPORT_SYMBOL and depmod don't work well together with GCC 3.2.2 Martin J. Bligh

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®