]> git.hungrycats.org Git - linux/commit
[PATCH] Re: Building sym 2.1.18f on linux/alpha
authorMatthew Wilcox <willy@debian.org>
Wed, 14 Jan 2004 06:47:05 +0000 (01:47 -0500)
committerJames Bottomley <jejb@mulgrave.(none)>
Wed, 14 Jan 2004 06:47:05 +0000 (01:47 -0500)
commit2de47969c61b6dcbee10950fda4131af29267ff7
tree12a7a802c0b6df038740fc829e4d6086fb5b701f
parent8a0817d5d1737da4a9e4fb3e34c69f1b79ae1733
[PATCH] Re: Building sym 2.1.18f on linux/alpha

On Tue, Jan 13, 2004 at 06:02:08PM +0300, Sergey Tikhonov wrote:
> The final kernel could not pass linking stage with 2.1.18f version
> (included into 2.6.1 kernel patch).
> The linker complains that :
> drivers/built-in.o(.init.text+0x8cec): In function 'sym2_probe':
> : undfined reference to 'local symbols in discarded section .exit.text'
>
> I compared arch/alpha/kernel/vmlinux.lds.S with one from the i386 tree.
> The '.exit.text' and '.exit.data'
> sections were moved out of DISCARD attributes in the i386 version. I did
> the same with alpha version
> and it helped.

Thanks for this report; you uncovered a real bug.  Actually two real
bugs; one is that parisc is not discarding the .init.text and .exit.text
sections (so I didn't notice this bug) and the other is that sym_detach
is marked __devexit, yet called from a __devinit function.
drivers/scsi/sym53c8xx_2/sym_glue.c