Re: undefined references when compiling kernel with binutils-2.11.92.0.12.3

Keith Owens (kaos@ocs.com.au)
Wed, 23 Jan 2002 16:24:52 +1100


On Tue, 22 Jan 2002 14:43:16 +0100 (CET),
Jan Pospisil <honik@civ.zcu.cz> wrote:
>Hello, it has been posted so many times, and according to Richard Gooch it
>should be fixed in 2.4.18-pre3, however I am still having the problem
>undefined reference to `local symbols in discarded section .text.exit'
>particullary with the CONFIG_VIDEO_BT848=y (as a module it works fine).
>In function `bttv_probe':
>drivers/media/media.o(.text.init+0x1745): undefined reference to `local
>symbols in discarded section .text.exit'

That is a real coding bug that the new binutils has found and
highlighted. bttv_probe() calls bttv_remove() which is defined as
__devexit, bttv_remove() is not there when the code is built in. Take
it up with the bttv maintainer, it is a coding error, not binutils.

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/