linux-mips
[Top] [All Lists]

Problem with loadable module

To: linux-mips@linux-mips.org
Subject: Problem with loadable module
From: kanhu <kanhu@innomedia.soft.net>
Date: Sat, 16 Jul 2005 12:53:52 +0530
Original-recipient: rfc822;linux-mips@linux-mips.org
Sender: linux-mips-bounce@linux-mips.org
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.6) Gecko/20050328 Fedora/1.7.6-1.2.5
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

<Prev in Thread] Current Thread [Next in Thread>
  • Problem with loadable module, kanhu <=