* Re: errors while insmoding usb-skeleton.o (changed to suit our requirements) [not found] <000b01c4bb6a$f87b1580$0e00a8c0@narendra> @ 2004-10-26 15:04 ` Ralf Baechle 2004-10-26 15:06 ` Narendra Kulkarni 2004-10-27 6:30 ` Narendra Kulkarni 0 siblings, 2 replies; 6+ messages in thread From: Ralf Baechle @ 2004-10-26 15:04 UTC (permalink / raw) To: Narendra Kulkarni; +Cc: 'Narendra Kulkarni', linux-mips 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 ^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: errors while insmoding usb-skeleton.o (changed to suit our requirements) @ 2004-10-26 15:06 ` Narendra Kulkarni 0 siblings, 0 replies; 6+ messages in thread From: Narendra Kulkarni @ 2004-10-26 15:06 UTC (permalink / raw) To: Ralf Baechle; +Cc: 'Narendra Kulkarni', linux-mips Hello Ralf, I think if we use -DKBUILD_BASENAME, we dont need -DMODULE. Correct me if i am wrong Narendra ----- Original Message ----- From: "Ralf Baechle" <ralf@linux-mips.org> To: "Narendra Kulkarni" <narendra@econtek.com> Cc: "'Narendra Kulkarni'" <narendra@spacomp.com>; <linux-mips@linux-mips.org> Sent: Tuesday, October 26, 2004 8:34 PM Subject: Re: errors while insmoding usb-skeleton.o (changed to suit our requirements) > 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 > > ^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: errors while insmoding usb-skeleton.o (changed to suit our requirements) @ 2004-10-26 15:06 ` Narendra Kulkarni 0 siblings, 0 replies; 6+ messages in thread From: Narendra Kulkarni @ 2004-10-26 15:06 UTC (permalink / raw) To: Ralf Baechle; +Cc: 'Narendra Kulkarni', linux-mips Hello Ralf, I think if we use -DKBUILD_BASENAME, we dont need -DMODULE. Correct me if i am wrong Narendra ----- Original Message ----- From: "Ralf Baechle" <ralf@linux-mips.org> To: "Narendra Kulkarni" <narendra@econtek.com> Cc: "'Narendra Kulkarni'" <narendra@spacomp.com>; <linux-mips@linux-mips.org> Sent: Tuesday, October 26, 2004 8:34 PM Subject: Re: errors while insmoding usb-skeleton.o (changed to suit our requirements) > 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 > > ^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: errors while insmoding usb-skeleton.o (changed to suit our requirements) 2004-10-26 15:06 ` Narendra Kulkarni (?) @ 2004-10-26 15:22 ` Ralf Baechle -1 siblings, 0 replies; 6+ messages in thread From: Ralf Baechle @ 2004-10-26 15:22 UTC (permalink / raw) To: Narendra Kulkarni; +Cc: 'Narendra Kulkarni', linux-mips On Tue, Oct 26, 2004 at 08:36:26PM +0530, Narendra Kulkarni wrote: > Hello Ralf, > I think if we use -DKBUILD_BASENAME, we dont need -DMODULE. Correct me if i > am wrong Nope. Ralf ^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: errors while insmoding usb-skeleton.o (changed to suit our requirements) @ 2004-10-27 6:30 ` Narendra Kulkarni 0 siblings, 0 replies; 6+ messages in thread From: Narendra Kulkarni @ 2004-10-27 6:30 UTC (permalink / raw) To: Ralf Baechle; +Cc: linux-mips Hi, I have used the functions copy_to_user and copy_from_user in the driver to get and send data to user space. If I comment the above statements, i dont get the errors when i insmod usb-skeleton.o which i get when i use the copy_to_user and copy _from_user functions. errors ---> 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 Narendra ----- Original Message ----- From: "Ralf Baechle" <ralf@linux-mips.org> To: "Narendra Kulkarni" <narendra@econtek.com> Cc: "'Narendra Kulkarni'" <narendra@spacomp.com>; <linux-mips@linux-mips.org> Sent: Tuesday, October 26, 2004 8:34 PM Subject: Re: errors while insmoding usb-skeleton.o (changed to suit our requirements) > 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 > > ^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: errors while insmoding usb-skeleton.o (changed to suit our requirements) @ 2004-10-27 6:30 ` Narendra Kulkarni 0 siblings, 0 replies; 6+ messages in thread From: Narendra Kulkarni @ 2004-10-27 6:30 UTC (permalink / raw) To: Ralf Baechle; +Cc: linux-mips Hi, I have used the functions copy_to_user and copy_from_user in the driver to get and send data to user space. If I comment the above statements, i dont get the errors when i insmod usb-skeleton.o which i get when i use the copy_to_user and copy _from_user functions. errors ---> 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 Narendra ----- Original Message ----- From: "Ralf Baechle" <ralf@linux-mips.org> To: "Narendra Kulkarni" <narendra@econtek.com> Cc: "'Narendra Kulkarni'" <narendra@spacomp.com>; <linux-mips@linux-mips.org> Sent: Tuesday, October 26, 2004 8:34 PM Subject: Re: errors while insmoding usb-skeleton.o (changed to suit our requirements) > 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 > > ^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2004-10-27 6:34 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <000b01c4bb6a$f87b1580$0e00a8c0@narendra>
2004-10-26 15:04 ` errors while insmoding usb-skeleton.o (changed to suit our requirements) Ralf Baechle
2004-10-26 15:06 ` Narendra Kulkarni
2004-10-26 15:06 ` Narendra Kulkarni
2004-10-26 15:22 ` Ralf Baechle
2004-10-27 6:30 ` Narendra Kulkarni
2004-10-27 6:30 ` Narendra Kulkarni
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.