BusyBox Bug and Patch Tracking
BusyBox
  

Viewing Issue Simple Details Jump to Notes ] View Advanced ] Issue History ] Print ]
ID Category Severity Reproducibility Date Submitted Last Update
0000459 [BusyBox] Kernel Module Support major always 09-30-05 23:22 10-01-05 23:46
Reporter svdavidson View Status public  
Assigned To BusyBox
Priority normal Resolution fixed  
Status closed   Product Version 1.01
Summary 0000459: 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

Additional Information
Attached Files  insmod.patch [^] (2,083 bytes) 09-30-05 23:23

- Relationships

- Notes
(0000593)
vapier
10-01-05 23:46

thanks, added to svn
 

- 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
10-01-05 23:46 vapier Note Added: 0000593
10-01-05 23:46 vapier Status assigned => closed
10-01-05 23:46 vapier Resolution open => fixed


Copyright © 2000 - 2006 Mantis Group
Powered by Mantis Bugtracker