Skip to contentSkip to conversation

insmod failure: "Unhandled relocation" errors

DISCUSSION Gilad Benjamini 4 participants 6 messages Jan 14, 2003 – Jan 15, 2003 MIPS

lore
Share & tools
lore
#0 lore raw

Hi,
I've built,compiled and ran successfully a 64 bit kernel on my mips64 platform. Kernel was compiled with support for 32 bit binaries.

I am now trying to insert a module, a standard module from the kernel tree, and get lots of errors such as:
"Unhandled relocation of type 18 for"
or
"Unhandled relocation of type 18 for <function_name>"

How can this be resolved ?

TIA

#1 lore raw
Quoted 10 lines · Gilad Benjamini

I've built,compiled and ran successfully a 64 bit kernel on my mips64 platform. Kernel was compiled with support for 32 bit binaries.

I am now trying to insert a module, a standard module from the kernel tree, and get lots of errors such as:
"Unhandled relocation of type 18 for"
or
"Unhandled relocation of type 18 for <function_name>"

How can this be resolved ?

Modules are not supported on 64-bit kernel yet.

Ralf

#2 lore raw
In reply to Gilad Benjamini
Quoted 5 lines · Gilad Benjamini

I am now trying to insert a module, a standard module from the kernel tree, and get lots of errors such as:
"Unhandled relocation of type 18 for"
or
"Unhandled relocation of type 18 for <function_name>"

I'm impressed that it got this far -- let me guess, big endian? Little endian didn't even get that far last time I tried it.

greg

#4 lore raw
In reply to Gilad Benjamini
Quoted 6 lines · Gilad Benjamini

I've built,compiled and ran successfully a 64 bit kernel on my mips64 platform. Kernel was compiled with support for 32 bit binaries.

I am now trying to insert a module, a standard module from the kernel tree, and get lots of errors such as:
"Unhandled relocation of type 18 for"

Type 18 is R_MIPS_64. modutils does not support 64 bit mips at all, nobody has sent me any code to handle this architecture.

modutils needs obj/obj_mips64.c. The config and makefiles have to be tweaked to handle mips64, including combined 32/64 bit code, as for sparc32/sparc64. Does anybody who knows mips64 feel like contributing the modutils code?

#3 lore raw
In reply to Greg Lindahl
Quoted 8 lines · Greg Lindahl
Quoted 5 lines

I am now trying to insert a module, a standard module from the kernel tree, and get lots of errors such as:
"Unhandled relocation of type 18 for"
or
"Unhandled relocation of type 18 for <function_name>"

I'm impressed that it got this far -- let me guess, big endian? Little endian didn't even get that far last time I tried it.

The modules we also built with the wrong options which is the cause for these specific error messages. There was just no point mentioning these because the actual showstopper was a 32-bit vs. 64-bit problem.

Ralf

#5 lore raw
In reply to Keith Owens
Quoted 4 lines · Keith Owens

modutils needs obj/obj_mips64.c. The config and makefiles have to be tweaked to handle mips64, including combined 32/64 bit code, as for sparc32/sparc64. Does anybody who knows mips64 feel like contributing the modutils code?

Until recently the big problem with implementing modules support for mips64 was the complete unusability of binutils. Compared to the complexity of getting binutils to work what it takes to get modutils to work is plain trivial ...

Ralf