2002-06-24 22:00:35

by Toni Viemero

[permalink] [raw]
Subject: Another .text.exit error with 2.4.19-rc1

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,
--
Toni Viemer? | http://selfdestruct.net
"The ones who dont do anything are always the ones who try to pull you
down."


2002-06-24 22:49:38

by Keith Owens

[permalink] [raw]
Subject: Re: Another .text.exit error with 2.4.19-rc1

On Tue, 25 Jun 2002 00:56:19 +0300,
Toni Viemero <[email protected]> wrote:
>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.

--- drivers/scsi/ips.c Tue Jun 4 13:34:30 2002
+++ drivers/scsi/ips.c.new Tue Jun 25 08:48:25 2002
@@ -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


2002-06-25 01:20:39

by Toni Viemero

[permalink] [raw]
Subject: Re: Another .text.exit error with 2.4.19-rc1

On Tue, Jun 25, 2002 at 08:49:28AM +1000, Keith Owens wrote:
> On Tue, 25 Jun 2002 00:56:19 +0300,
> Toni Viemero <[email protected]> wrote:
> >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.
>
> --- drivers/scsi/ips.c Tue Jun 4 13:34:30 2002
> +++ drivers/scsi/ips.c.new Tue Jun 25 08:48:25 2002
> @@ -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.

--
Toni Viemer? | http://selfdestruct.net
"The scars will take me far, they always do."