linux-mips
[Top] [All Lists]

Re: errors while insmoding usb-skeleton.o (changed to suit our requirem

To: Narendra Kulkarni <narendra@econtek.com>
Subject: Re: errors while insmoding usb-skeleton.o (changed to suit our requirements)
From: Ralf Baechle <ralf@linux-mips.org>
Date: Tue, 26 Oct 2004 17:04:33 +0200
Cc: "'Narendra Kulkarni'" <narendra@spacomp.com>, linux-mips@linux-mips.org
In-reply-to: <000b01c4bb6a$f87b1580$0e00a8c0@narendra>
Original-recipient: rfc822;linux-mips@linux-mips.org
References: <000b01c4bb6a$f87b1580$0e00a8c0@narendra>
Sender: linux-mips-bounce@linux-mips.org
User-agent: Mutt/1.4.1i
On Tue, Oct 26, 2004 at 08:19:14PM +0530, Narendra Kulkarni wrote:

> I am building a module usb-skeleton.o with following compiler options (The
> complier options are same as the options of used for building kernel)
> 
> /opt/brcm/hndtools-mipsel-linux-3.2.3/bin/mipsel-linux-gcc -D__KERNEL__  -I/
> usr/src/mipslinux/src/linux/linux/include -Wall -Wstrict-prototypes -Wno-tri
> graphs -O2 -fno-strict-aliasing -fno-common -fomit-frame-pointer -I/usr/src/
> mipslinux/src/linux/linux/../../include -I/usr/src/mipslinux/src/linux/linux
> /include/asm/gcc -G
>  -mno-abicalls -fno-pic -pipe -mips2  -mlong-calls  -nostdinc -iwithprefix
> include -DKBUILD_BASENAME=usb-skeleton  -c -o usb-skeleton.o usb-skeleton.c
> 
>  When insmoding the usb-skeleton.o,  insmod usb-skeleton.o
> I am getting the following erros
>  Using usb-skeleton.o
>  insmod: Relocation overflow of type 4 for __copy_user
>  insmod: Relocation overflow of type 4 for __copy_user
>  insmod: Relocation overflow of type 4 for __copy_user
> 
> Where am i going wrong.  Help would be appreciated.

Seems your compiler command line is missing -DMODULE.

  Ralf

<Prev in Thread] Current Thread [Next in Thread>