2000-03-29 04:57:25

by Ivan Passos

[permalink] [raw]
Subject: Modules and "Relocation overflow of type 4" (??)


Hello,

I'm trying to run syncppp on Cobalt Qube2 boxen and it runs fine when I
build it as static (i.e., built-in to the kernel).

However, if I try to run it as a module ...

# gcc -D__KERNEL__ -I/usr/src/linux-2.0.34C52_SK/include -Wall
-Wstrict-prototypes -O2 -fomit-frame-pointer -fno-strength-reduce -G 0
-mno-abicalls -fno-pic -mcpu=r8000 -mips2 -mmad -pipe -DMODULE -c -o
syncppp.o syncppp.c

(no compilation errors)

# insmod syncppp.o

syncppp.o: Relocation overflow of type 4 for add_timer
syncppp.o: Relocation overflow of type 4 for del_timer
syncppp.o: Relocation overflow of type 4 for printk
syncppp.o: Relocation overflow of type 4 for printk
syncppp.o: Relocation overflow of type 4 for printk
syncppp.o: Relocation overflow of type 4 for printk
syncppp.o: Relocation overflow of type 4 for printk
syncppp.o: Relocation overflow of type 4 for printk
syncppp.o: Relocation overflow of type 4 for printk
syncppp.o: Relocation overflow of type 4 for netif_rx
syncppp.o: Relocation overflow of type 4 for kfree_skb
syncppp.o: Relocation overflow of type 4 for printk
syncppp.o: Relocation overflow of type 4 for add_timer
syncppp.o: Relocation overflow of type 4 for printk
syncppp.o: Relocation overflow of type 4 for printk
syncppp.o: Relocation overflow of type 4 for printk
syncppp.o: Relocation overflow of type 4 for printk
syncppp.o: Relocation overflow of type 4 for printk
syncppp.o: Relocation overflow of type 4 for printk
syncppp.o: Relocation overflow of type 4 for printk
syncppp.o: Relocation overflow of type 4 for printk
syncppp.o: Relocation overflow of type 4 for printk
syncppp.o: Relocation overflow of type 4 for printk
syncppp.o: Relocation overflow of type 4 for printk
syncppp.o: Relocation overflow of type 4 for printk
syncppp.o: Relocation overflow of type 4 for printk
syncppp.o: Relocation overflow of type 4 for printk
syncppp.o: Relocation overflow of type 4 for alloc_skb
syncppp.o: Relocation overflow of type 4 for memcpy
syncppp.o: Relocation overflow of type 4 for printk
syncppp.o: Relocation overflow of type 4 for printk
syncppp.o: Relocation overflow of type 4 for dev_queue_xmit
syncppp.o: Relocation overflow of type 4 for alloc_skb
syncppp.o: Relocation overflow of type 4 for printk
syncppp.o: Relocation overflow of type 4 for dev_queue_xmit
syncppp.o: Relocation overflow of type 4 for printk
syncppp.o: Relocation overflow of type 4 for add_timer
syncppp.o: Relocation overflow of type 4 for del_timer
syncppp.o: Relocation overflow of type 4 for kmalloc
syncppp.o: Relocation overflow of type 4 for memcpy
syncppp.o: Relocation overflow of type 4 for kfree
syncppp.o: Relocation overflow of type 4 for printk
syncppp.o: Relocation overflow of type 4 for printk
syncppp.o: Relocation overflow of type 4 for printk
syncppp.o: Relocation overflow of type 4 for sprintf
syncppp.o: Relocation overflow of type 4 for sprintf
syncppp.o: Relocation overflow of type 4 for printk
syncppp.o: Relocation overflow of type 4 for printk
syncppp.o: Relocation overflow of type 4 for printk
syncppp.o: Relocation overflow of type 4 for printk
syncppp.o: Relocation overflow of type 4 for dev_add_pack
syncppp.o: Relocation overflow of type 4 for dev_remove_pack


The kernel for the Cobalt Qube2 boxen is a Cobalt-crafted 2.0.34.

Does anybody have a clue on what could be the problem here???

Thanks in advance for your help.

Regards,
Ivan