Linux MIPS Architecture development
 help / color / mirror / Atom feed
From: kanhu <kanhu@innomedia.soft.net>
To: linux-mips@linux-mips.org
Subject: Problem with loadable module
Date: Sat, 16 Jul 2005 12:53:52 +0530	[thread overview]
Message-ID: <42D8B608.4020600@innomedia.soft.net> (raw)

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

                 reply	other threads:[~2005-07-16  7:22 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=42D8B608.4020600@innomedia.soft.net \
    --to=kanhu@innomedia.soft.net \
    --cc=linux-mips@linux-mips.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox