Skip to contentSkip to conversation

insmod problems

DISCUSSION Shay Deloya 3 participants 4 messages May 6, 2001 – May 10, 2001 MIPS

lore
Share & tools
lore
#0 lore raw

Hi All,

I have an old problem came up again and the old solution aren't helping. I'm using busybox version 0.50 and with kernel 2.2 , and inserting some modules ,especially those with DEBUG macroes e.g:
#define DEBUG_HIGH(args...) {if (debug_level >= HIGH) printk(args);} causes the message :
Relocation overflow of type 4 for

and insmod fails.

I'm compiling the modules with -mlong-calls and still getting this message.

Is it insmod knowen bugs that the relocation is done in bad way or a linker/compiler bug. I'm using compiler: egcs ver 1.0.3a I'm checking this problem at the moment and looking for insmod bug.

Thanks,

Shay Deloya
______________________________________
Software Developer
Jungo - R&D
email: [email protected]
web: http://www.jungo.com
Phone: 1-877-514-0537(USA) +972-9-8859365(Worldwide) ext. 221
Fax: 1-877-514-0538(USA) +972-9-8859366(Worldwide)

#1 lore raw
Quoted 7 lines · Shay Deloya

I have an old problem came up again and the old solution aren't helping. I'm using busybox version 0.50 and with kernel 2.2 , and inserting some modules ,especially those with DEBUG macroes e.g:
#define DEBUG_HIGH(args...) {if (debug_level >= HIGH) printk(args);} causes the message :
Relocation overflow of type 4 for

Quoted 7 lines

and insmod fails.

I'm compiling the modules with -mlong-calls and still getting this message.

Is it insmod knowen bugs that the relocation is done in bad way or a linker/compiler bug. I'm using compiler: egcs ver 1.0.3a I'm checking this problem at the moment and looking for insmod bug.

You'll have to upgrade to very current binutils which for mips*-linux targets default to elf32-trad{big,little}mips, not IRIX ELF format. Also it seems your modutils are a bit rotten, get the latest from ftp.kernel.org.

Ralf

#2 lore raw
Quoted 9 lines · Ralf Baechle
Quoted 4 lines · Shay Deloya

I have an old problem came up again and the old solution aren't helping.
Relocation overflow of type 4 for
Is it insmod knowen bugs that the relocation is done in bad way or a linker/compiler bug. I'm using compiler: egcs ver 1.0.3a I'm checking this problem at the moment and looking for insmod bug.

Quoted 5 lines

You'll have to upgrade to very current binutils which for mips*-linux targets default to elf32-trad{big,little}mips, not IRIX ELF format. Also it seems your modutils are a bit rotten, get the latest from ftp.kernel.org.

Ralf

On the same topic: same source (!!) 'insmod' executable compiled with new (2.10) binutils doesn't exibit such relocation problem.

What may be causing 'insmod' to be dependant on binutils which compile it? The module *.o is exactly same as it was before.

Sincerely yours,
Michael Shmulevich
______________________________________
Software Developer
Jungo - R&D
email: [email protected]
web: http://www.jungo.com
Phone: 1-877-514-0537(USA) +972-9-8859365(Worldwide) ext. 233
Fax: 1-877-514-0538(USA) +972-9-8859366(Worldwide)

#3 lore raw
Quoted 5 lines · Michael Shmulevich

On the same topic: same source (!!) 'insmod' executable compiled with new (2.10) binutils doesn't exibit such relocation problem.

What may be causing 'insmod' to be dependant on binutils which compile it? The module *.o is exactly same as it was before.

Without further explanation this one just sounds bizarre for now.

There always have been differences between the code generated by binutils in the various versions; the resulting changes may result in different behaviour of a broken programs. These are fun to debug to say the least. The other possibility would be binutils bugs but I'm not aware of one with the effect you described.

Ralf