Bug#609371: linux-image-2.6.37-trunk-sparc64: module scsi_mod: Unknown relocation: 36
From: Ben Hutchings <ben@decadent.org.uk>
Date: Sun, 09 Jan 2011 03:00:40 +0000
> On Sun, 2011-01-09 at 01:05 +0000, Richard Mortimer wrote:
>> Package: linux-2.6
>> Version: 2.6.37-1~experimental.1
>> Severity: normal
>>
>> Boot of linux-image-2.6.37-trunk-sparc64 fails to find the disks and drops
>> to the initramfs prompt. When I try to load the sym53c8xx driver it fails
>> as follows
>>
>> (initramfs) modprobe sym53c8xx
>> [ 122.470284] module scsi_mod: Unknown relocation: 36
>> FATAL: Error inserting sym53c8xx (/lib/modules/2.6.37-trunk-sparc64/kernel/drive
>> rs/scsi/sym53c8xx_2/sym53c8xx.ko): Invalid module format
>> (initramfs)
>
> David, do you have any idea how this could happen?
>
>> A quick web search finds a similar issue
>> http://kerneltrap.org/mailarchive/linux-kernel/2010/6/16/4583942
>> but I have not looked into this any further yet.
> [...]
>
> That was apparently a bug in the build scripts for a separate module.
And like that case bad build flags are causing this problem too. It
means that "-mcode-model=medlow" is not making it into the module
build cflags somehow.
This relocation can only occur for sparc64 code models other than
"medlow".
Reply to: