Insmod messages and modules space
Hi All,
1.Should text segment of module after insmod be in KSEG2 or KUSEG ? I've notices that the module address after insmod are c0... instead of 80... Is it insmod Bug ?
2. I keep getting in insmod of busybox pkg , "relocation overflow" message especially on printk symbols , when I debug the code, changing some function declaration from static int func () to int func() , makes the module to insert correctly , anyone ?
Thanks,
Signature · 8 lines
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)
Quoted 3 lines · Shay Deloya
1.Should text segment of module after insmod be in KSEG2 or KUSEG ? I've notices that the module address after insmod are c0... instead of 80... Is it insmod Bug ?
It's a sign of insmod working properly :)
Quoted 4 lines
2. I keep getting in insmod of busybox pkg , "relocation overflow" message especially on printk symbols , when I debug the code, changing some function declaration from static int func () to int
func(), makes the module to insert correctly , anyone ?
Two possibilities, either you're using a too old and broken version of modutils or you used inapropriate options to compile your module.
Ralf
Quoted 9 lines · Ralf Baechle
Quoted 3 lines · Shay Deloya
1.Should text segment of module after insmod be in KSEG2 or KUSEG ? I've notices that the module address after insmod are c0... instead of 80... Is it insmod Bug ?
It's a sign of insmod working properly :)
Quoted 8 lines
Quoted 4 lines
2. I keep getting in insmod of busybox pkg , "relocation overflow" message especially on printk symbols , when I debug the code, changing some function declaration from static int func () to int
func(), makes the module to insert correctly , anyone ?Two possibilities, either you're using a too old and broken version of modutils or you used inapropriate options to compile your module.
Compiling with -mlong-calls worked for me when I had the same problem (modutils 2.4.5). Relinking the module with 'ld -r -o new_mod.o orig_mod.o' was useful too ...it worked around some 'exceeds local_symtab_size' messages.
Ian
Quoted 6 lines · Ian Soanes
Quoted 3 lines · Shay Deloya
Quoted 2 lines
2. I keep getting in insmod of busybox pkg , "relocation overflow" message especially on printk symbols
Compiling with -mlong-calls worked for me when I had the same problem (modutils 2.4.5).
Compiling what with -mlong-calls, modutils or the kernel modules? I guess it must be the modules, in which case adding
MODFLAGS += -mlong-calls
in arch/$(ARCH)/Makefile is the best fix.
Quoted 7 lines · Keith Owens
Quoted 4 lines · Ian Soanes
Quoted 3 lines · Shay Deloya
Quoted 2 lines
2. I keep getting in insmod of busybox pkg , "relocation overflow" message especially on printk symbols
Quoted 7 lines
Quoted 2 lines
Compiling with -mlong-calls worked for me when I had the same problem (modutils 2.4.5).
Compiling what with -mlong-calls, modutils or the kernel modules? I guess it must be the modules, in which case adding
MODFLAGS += -mlong-calls
in arch/$(ARCH)/Makefile is the best fix.
Yes... the modules.