Problem with loadable module

From: kanhu <hidden>
Date: 2005-07-16 07:22:49

Hi all,

I am using uClinux(uClinux-dist-20030305) on ARCH=mipsnommu and the 
CROSS_COMPILE=mipseb-linux- .I have installed the toolchain 
mipseb-linux-3.2.2-0.8.0.i386.rpm
I have written a simple loadable hello module and compiled it, It has 
been compiled successfully and when I try to load it by

/>insmod /lib/modules/hello
 It gives the following  error
======================
Using /lib/modules/hello
insmod: unresolved symbol _gp_disp
pid 25: failed 256
 =======================
What might be the problem ?

My Makefile looks like this
============================
TARGET = hello
OBJS =  hello.o
                                                                        
                                                 
CFLAGS = -DMODULE -D__KERNEL__ -Wl,-elf2flt -Dlinux -D__linux__ -Dunix 
-D__uClinux__ -DEMBED -DLINUX
CFLAGS += -I../../linux-2.4.x/include -I../../linux-2.4.x/include/linux
CFLAGS += -Wall -Wstrict-prototypes -Wno-trigraphs -O2 
-fno-strict-aliasing -fno-common
CFLAGS += -fno-common -pipe -fno-builtin -D__linux__ -DNO_MM
CFLAGS += -nostdinc -msoft-float
CFLAGS += 
-I/opt/uClinux/toolchain/mipseb/3.2.2/lib/gcc-lib/mipseb-linux/3.2.2/include
CFLAGS += -DNDEBUG
                                                                        
                                                 
all: $(TARGET)
                                                                        
                                                 
$(TARGET): $(OBJS)
        $(LD) -r $(OBJS) -o $(TARGET)
                                                                        
                                                 
romfs:
        $(ROMFSINST) /lib/modules/$(TARGET)
                                                                        
                                                 
clean:
        -rm -f $(TARGET) *.elf *.gdb *.o
=======================================

Any idea to proceed with is welcome.



With Thanks & Regards
          Kanhu
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help