Skip to contentSkip to conversation

x86_64 module loader reloc problem

DISCUSSION Andi Kleen 1 participant 1 message Nov 18, 2003 1 message not in the archive

lore
Share & tools
lore

Andi Kleen

author
#1 lore raw
In reply to a message not in the archive
Quoted 2 lines · Jason Baietto

Note that in my linked test module, objdump shows 632 R_X86_64_32 reloc entries and only 18 R_X86_64_64 reloc entries.

X86_64_32 is wrong for -mcmodel=kernel. It should be X86_64_32S. Either you didn't compile with -mcmodel=kernel or your compiler or binutils are buggy.

-Andi