Skip to contentSkip to conversation

Another .text.exit error with 2.4.19-rc1

DISCUSSION Toni Viemero 2 participants 3 messages Jun 24, 2002 – Jun 25, 2002

lore
Share & tools
lore
#0 lore raw

Seems like ServeRAID driver is causing problems

System: Debian GNU/Linux unstable (IBM eServer 232 with ServeRAID 4Lx)

compiling kernel stops, error output:

drivers/scsi/scsidrv.o(.data+0x3874): undefined reference to local symbols in discarded section .text.exit'

and output of "reference_discarded.pl" by Keith Owens:

aq144:/usr/src/linux# perl ../reference_discarded.pl 
Finding objects, 392 objects, ignoring 0 module(s)
Finding conglomerates, ignoring 35 conglomerate(s)
Scanning objects
Error: ./drivers/scsi/ips.o .data refers to 000000d4 R_386_32
.text.exit
Done

Regards,

Signature · 3 lines
Toni Viemerö  |  http://selfdestruct.net
"The ones who dont do anything are always the ones who try to pull you
 down."
#1 lore raw
Quoted 8 lines · Toni Viemero

drivers/scsi/scsidrv.o(.data+0x3874): undefined reference to local symbols in discarded section .text.exit'

aq144:/usr/src/linux# perl ../reference_discarded.pl 
Finding objects, 392 objects, ignoring 0 module(s)
Finding conglomerates, ignoring 35 conglomerate(s)
Scanning objects
Error: ./drivers/scsi/ips.o .data refers to 000000d4 R_386_32
.text.exit

Untested.

scsi/ips.c.new renamed from scsi/ips.c +1 -1
@@ -284,7 +284,7 @@
        name:		ips_hot_plug_name,
        id_table:	ips_pci_table,
        probe:		ips_insert_device,
-       remove:		ips_remove_device,
+       remove:		__devexit_p(ips_remove_device),
    };
 #endif
 
#2 lore raw
Quoted 16 lines · Keith Owens
Quoted 8 lines · Toni Viemero

drivers/scsi/scsidrv.o(.data+0x3874): undefined reference to local symbols in discarded section .text.exit'

aq144:/usr/src/linux# perl ../reference_discarded.pl 
Finding objects, 392 objects, ignoring 0 module(s)
Finding conglomerates, ignoring 35 conglomerate(s)
Scanning objects
Error: ./drivers/scsi/ips.o .data refers to 000000d4 R_386_32
.text.exit

Untested.

scsi/ips.c.new line 289

Quoted 7 lines
scsi/ips.c.new renamed from scsi/ips.c +1 -1
@@ -284,7 +284,7 @@
        name:		ips_hot_plug_name,
        id_table:	ips_pci_table,
        probe:		ips_insert_device,
-       remove:		ips_remove_device,
+       remove:		__devexit_p(ips_remove_device),
    };
 #endif

Tested and now compiles/works ok.

Signature · 2 lines
Toni Viemerö  |  http://selfdestruct.net
"The scars will take me far, they always do."