Skip to contentSkip to conversation

Question about modules

DISCUSSION Ibon Gotxi Garcia 2 participants 3 messages Feb 28, 2003

lore
Share & tools
lore
#0 lore raw

I'm trying to write a simple module for an 8xx board using the SMC2. Everything works, till I try to insmod it: I get m8xx_cpm_alloc and m8xx_cpm_hostalloc as unresolved symbols.

I think that arch/ppc/8xx_io/commproc.c is properly compiled (I can see both symbols on vmlinux), but somehow the build process strips them off as they are unused (i cannot see them in /proc/ksyms in the target). Is that right? Any clue to solve it? (having them in the target kernel without modifying the original sources)

Many regards.
ibon

--
Ibon Gotxi Garcia <[email protected]>

** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/

#1 lore raw

Hi

What abt System.map...
Can u check if symbols are there.

Bye
Bhupi

Quoted 17 lines · --- Ibon Gotxi Garcia

I'm trying to write a simple module for an 8xx board using the SMC2.
Everything works, till I try to insmod it: I get m8xx_cpm_alloc and
m8xx_cpm_hostalloc as unresolved symbols.

I think that arch/ppc/8xx_io/commproc.c is properly compiled (I can see
both symbols on vmlinux), but somehow the build process strips them off
as they are unused (i cannot see them in /proc/ksyms in the target). Is
that right? Any clue to solve it? (having them in the target kernel
without modifying the original sources)

Quoted 7 lines

Many regards.
ibon

--
Ibon Gotxi Garcia <[email protected]>

** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/

#2 lore raw
Quoted 5 lines · bhupinder sahran

Hi

What abt System.map...
Can u check if symbols are there.

yes, they are, as well as in vmlinux. In my top level Makefile I find:

$(NM) vmlinux | grep -v '\(compiled\)\|\(\.o$$\)\|\( [aUw] \)\|\(\.\.ng$$\)\|\(LASH[RL]DI\)' | sort > System.map

but I think that in the step of making zvmlinux, unneeded symbols _may_ be stripped off, because i cannot find all the symbols in the target (in /proc/ksyms or with ksyms -a). Am i right?

Thank you for answering, anyway.

Cheers
Ibon.

Quoted 4 lines

Bye
Bhupi

Quoted 27 lines
Quoted 24 lines · --- Ibon Gotxi Garcia

I'm trying to write a simple module for an 8xx board using the SMC2.
Everything works, till I try to insmod it: I get m8xx_cpm_alloc and
m8xx_cpm_hostalloc as unresolved symbols.

I think that arch/ppc/8xx_io/commproc.c is properly compiled (I can see
both symbols on vmlinux), but somehow the build process strips them off
as they are unused (i cannot see them in /proc/ksyms in the target). Is
that right? Any clue to solve it? (having them in the target kernel
without modifying the original sources)

Many regards.
ibon

--
Ibon Gotxi Garcia <[email protected]>

--
Ibon Gotxi Garcia <[email protected]>

** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/