All of lore.kernel.org
 help / color / mirror / Atom feed
* Problem with loadable module
@ 2005-07-16  7:23 kanhu
  0 siblings, 0 replies; only message in thread
From: kanhu @ 2005-07-16  7:23 UTC (permalink / raw)
  To: linux-mips

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

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

only message in thread, other threads:[~2005-07-16  7:22 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-07-16  7:23 Problem with loadable module kanhu

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.