[BusyBox 0000459]: insmod on linux 2.4 x86_64 kernel fails with relocation errors

bugs at busybox.net bugs at busybox.net
Sat Oct 1 06:23:01 UTC 2005


The following issue has been SUBMITTED. 
====================================================================== 
http://busybox.net/bugs/view.php?id=459 
====================================================================== 
Reported By:                svdavidson
Assigned To:                BusyBox
====================================================================== 
Project:                    BusyBox
Issue ID:                   459
Category:                   Kernel Module Support
Reproducibility:            always
Severity:                   major
Priority:                   normal
Status:                     assigned
====================================================================== 
Date Submitted:             09-30-2005 23:22 PDT
Last Modified:              09-30-2005 23:23 PDT
====================================================================== 
Summary:                    insmod on linux 2.4 x86_64 kernel fails with
relocation errors
Description: 
Inserting a module into a Linux 2.4 x86_64 kernel using busybox.insmod
failed due to relocation errors.

# ./modprobe e100
Using /lib/modules/2.4.21-15.EL/kernel/drivers/net/e100/e100.o
Warning: unhandled reloc 2
insmod: Unhandled relocation of type 2 for __const_udelay_Rsmp_eae3dfd6
Warning: unhandled reloc 2
insmod: Unhandled relocation of type 2 for e100_wait_scb
Warning: unhandled reloc 2
insmod: Unhandled relocation of type 2 for e100_exec_cmplx
Warning: unhandled reloc 2
insmod: Unhandled relocation of type 2 for alloc_etherdev_Rsmp_42ba5d18
Warning: unhandled reloc 11

The relocation code for x86_64 is missing from modutils/insmod.c. The
supplied patch (from modutils-2.4.27) fixes the problem. I tested the
patch with busybox-1.01 and busybox-20050930. I tested basic module
loading but did not try to exercise every path through the new code.
Here's how I applied the patch:

cd busybox-1.01
patch -p0 < ../insmod.patch

Shannon


====================================================================== 

Issue History 
Date Modified   Username       Field                    Change               
====================================================================== 
09-30-05 23:23  svdavidson     New Issue                                    
09-30-05 23:23  svdavidson     Status                   new => assigned     
09-30-05 23:23  svdavidson     Assigned To               => BusyBox         
09-30-05 23:23  svdavidson     File Added: insmod.patch                     
======================================================================



More information about the busybox-cvs mailing list