2002-01-22 13:43:45

by Jan Pospisil

[permalink] [raw]
Subject: undefined references when compiling kernel with binutils-2.11.92.0.12.3

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).

I have Athlon 850, Debian 3.0 (latest Sid), binutils-2.11.92.0.12.3-5,
gcc-3.0.3 and I tried both 2.4.17 and 2.4.18-pre4 with the same result.

Could someone help?

Thanks.
J.P.

Some listings follow:

...
ld -m elf_i386 -T /usr/src/linux/arch/i386/vmlinux.lds -e stext
arch/i386/kernel/head.o arch/i386/kernel/init_task.o init/main.o
init/version.o \
--start-group \
arch/i386/kernel/kernel.o arch/i386/mm/mm.o kernel/kernel.o
mm/mm.o fs/fs.o ipc/ipc.o \
drivers/parport/driver.o drivers/char/char.o
drivers/block/block.o drivers/misc/misc.o drivers/net/net.o
drivers/media/media.o drivers/char/agp/agp.o drivers/char/drm/drm.o
drivers/ide/idedriver.o drivers/scsi/scsidrv.o drivers/cdrom/driver.o
drivers/sound/sounddrivers.o drivers/pci/driver.o drivers/video/video.o
drivers/usb/usbdrv.o drivers/i2c/i2c.o \
net/network.o \
/usr/src/linux/arch/i386/lib/lib.a /usr/src/linux/lib/lib.a
/usr/src/linux/arch/i386/lib/lib.a \
--end-group \
-o vmlinux drivers/media/media.o:

In function `bttv_probe':
drivers/media/media.o(.text.init+0x1745): undefined reference to `local
symbols in discarded section .text.exit'

make: *** [vmlinux] Error 1

...
Linux aither 2.4.17 #1 Fri Jan 18 16:30:51 CET 2002 i686 unknown

Gnu C 3.0.3
Gnu make 3.79.1
util-linux 2.11n
mount 2.11n
modutils 2.4.12
e2fsprogs 1.25
reiserfsprogs 3.x.0j
PPP 2.4.1
Linux C Library 2.2.4
Dynamic linker (ldd) 2.2.4
Procps 2.0.7
Net-tools 1.60
Console-tools 0.2.3
Sh-utils 2.0.11
Modules Loaded openafs

...

\|/
(*.*)
=======oOO=(-)=OOo====================================================
Ing. Jan Pospisil University of West Bohemia
tel: + 420 (19) 7491-426 West-Bohemian Supercomputing Centre
fax: + 420 (19) 7421-419 Univerzitni 20
e-mail: [email protected] 306 14 Plzen, Czech Republic
======================================================================


2002-01-22 15:18:44

by Liakakis Kostas

[permalink] [raw]
Subject: 2.4.17: Hang after IDE detection


Hello,

I recently got an older k6-2/333 with a SiS chipset and tried to install
linux on it.

Every recent distro I tryed with a 2.4.x kernel would hang after detecting
the SiS5513 controller.

Annoyed I took 2.4.17 compiled it on another machine. The IDE config was:
#
# ATA/IDE/MFM/RLL support
#
CONFIG_IDE=y

#
# IDE, ATA and ATAPI Block devices
#
CONFIG_BLK_DEV_IDE=y
CONFIG_BLK_DEV_IDEDISK=y
CONFIG_IDEDISK_MULTI_MODE=y
CONFIG_BLK_DEV_IDECD=y
CONFIG_BLK_DEV_IDEPCI=y
CONFIG_IDEPCI_SHARE_IRQ=y
CONFIG_BLK_DEV_IDEDMA_PCI=y
CONFIG_BLK_DEV_ADMA=y
CONFIG_IDEDMA_PCI_AUTO=y
CONFIG_BLK_DEV_IDEDMA=y
CONFIG_BLK_DEV_PIIX=y
CONFIG_PIIX_TUNING=y
CONFIG_BLK_DEV_SIS5513=y
CONFIG_IDEDMA_AUTO=y
CONFIG_BLK_DEV_IDE_MODES=y

It would hang exactly the same as the distros (written down from display
by hand):

Blah blah blah...
Uniform Multi-Platform E-IDE driver Revision: 6.31
ide: Assuming 33mhz etc etc
SIS5513: IDE controller on PCI bus 00 dev 09
PCI: Assigned IRQ 14 for device 00:01.1
SIS5513: chipset revision 208
SIS5513: not 100% native mode: will probe irqs later
SIS5597
ide0: BM-DMA at 0x4000-0x4007, BIOS settings hda:pio, hdb:pio
ide1: BM-DMA at 0x4008-0x400f, BIOS settings hdc:pio, hdb:pio
hda: ST34321A, ATA DISK drive
hdc: CD-540E, ATAPI CD/DVD-DROM drive
ide0 at 0x1f0-0x1f7,0x3f6 on irq 14
ide1 at 0x170-0x177,0x376 on ira 15
<hang>

Keyboard is dead (no num-lock, no magic sysrq)

Things I have tryed and failed:
- Not using dma by default in kernel or nodma option
- Not enabling support for SiS5513 in kernel
- specifing hda geometry (hda=...), hdc=cdrom, hdb,hdd=noprobe
- kernels 2.4.11pre5 and redhat 7.1, Mandrake 8.0, 8.1 boot disks
- Andre's latest patches for 2.4.17 with SiS5513 configured

Things that succeeded:
- 2.2.x kernels were fine (x=10, 16 that were handy)
- 2.4.0test1-ac22 was also fine (tested without SiS5513 configured...)
- Andre's letest patches without SiS5513 configured

The /proc/pci of the machine after booting 2.4.17+Andre+no-SIS5513
injected into the Mandrake 8.1 bootdisk (again by hand):

PCI devices found:
Bus 0, device 0, function 0:
Host bridge: Silicon Integrated Systems [SiS] 5597 [SiS5582]
(rev2).
Master capable. Latency=255.
Bus 0, device 1, function 0:
ISA bridge: Silicon Inte... etc [SiS] 82C503/5513 (rev 1).
Bus 0, device 1, function 1:
IDE interface: Silicon ... etc [SiS] 5513 [IDE] (rev 208).
IRQ 14.
Master Capable. Latency=64.
I/O at 0x40000 [0x400f].
Bus 0, device 10, function 0:
VGA compatible controller: S3 Inc. ViRGE/DX or /GX (rev 1).
IRQ 12.
Master Capable. Latency=64. Min Gnt=4.Max Lat=255.
Non-prefetchable 32 bit memory at 0xe0000000 [0xe3ffffff].

Thanks for any help guys...

(now off to convince that Mandrake distro to install...)

-K.


2002-01-22 17:38:36

by Nils Rennebarth

[permalink] [raw]
Subject: Re: 2.4.17: Hang after IDE detection

On Tue, Jan 22, 2002 at 05:18:27PM +0200, Liakakis Kostas wrote:
> I recently got an older k6-2/333 with a SiS chipset and tried to install
> linux on it.
>
> Every recent distro I tryed with a 2.4.x kernel would hang after detecting
> the SiS5513 controller.

> SIS5513: chipset revision 208
> SIS5513: not 100% native mode: will probe irqs later
> SIS5597
> ide0: BM-DMA at 0x4000-0x4007, BIOS settings hda:pio, hdb:pio
> ide1: BM-DMA at 0x4008-0x400f, BIOS settings hdc:pio, hdb:pio
for me the hang happens here. Other symptoms are about the same.

> hda: ST34321A, ATA DISK drive
> hdc: CD-540E, ATAPI CD/DVD-DROM drive
> ide0 at 0x1f0-0x1f7,0x3f6 on irq 14
> ide1 at 0x170-0x177,0x376 on ira 15
> <hang>
all recent (>=16) and a 2.4.6 pre7 kernel hang. 2.2.19 is no problem.

Nils

--
______
(Muuuhh)
Global Village Sau ==> ^..^ |/?????
(Kann Fremdsprache) ==> (oo)


Attachments:
(No filename) (967.00 B)
(No filename) (232.00 B)
Download all attachments

2002-01-22 17:50:58

by Lionel Bouton

[permalink] [raw]
Subject: Re: 2.4.17: Hang after IDE detection

On Tue, Jan 22, 2002 at 06:38:15PM +0100, Nils Rennebarth wrote:
> On Tue, Jan 22, 2002 at 05:18:27PM +0200, Liakakis Kostas wrote:
> > I recently got an older k6-2/333 with a SiS chipset and tried to install
> > linux on it.
> >
> > Every recent distro I tryed with a 2.4.x kernel would hang after detecting
> > the SiS5513 controller.
>
> > SIS5513: chipset revision 208
> > SIS5513: not 100% native mode: will probe irqs later
> > SIS5597
> > ide0: BM-DMA at 0x4000-0x4007, BIOS settings hda:pio, hdb:pio
> > ide1: BM-DMA at 0x4008-0x400f, BIOS settings hdc:pio, hdb:pio
> for me the hang happens here. Other symptoms are about the same.
>
> > hda: ST34321A, ATA DISK drive
> > hdc: CD-540E, ATAPI CD/DVD-DROM drive
> > ide0 at 0x1f0-0x1f7,0x3f6 on irq 14
> > ide1 at 0x170-0x177,0x376 on ira 15
> > <hang>
> all recent (>=16) and a 2.4.6 pre7 kernel hang. 2.2.19 is no problem.
>
> Nils

Support for the 5597 coming in. Without net connection at home though.
May have to use floppy disks to bring code with me at work and then post.
Expect a post with an alpha version of ATA16/ATA33 chips support and
some ATA66 bugfixes before the week's end.

LB.

2002-01-23 05:25:27

by Keith Owens

[permalink] [raw]
Subject: Re: undefined references when compiling kernel with binutils-2.11.92.0.12.3

On Tue, 22 Jan 2002 14:43:16 +0100 (CET),
Jan Pospisil <[email protected]> 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.

2002-01-23 08:52:07

by Liakakis Kostas

[permalink] [raw]
Subject: Re: 2.4.17: Hang after IDE detection

On Tue, 22 Jan 2002, Nils Rennebarth wrote:

> On Tue, Jan 22, 2002 at 05:18:27PM +0200, Liakakis Kostas wrote:
> > SIS5513: chipset revision 208
> > SIS5513: not 100% native mode: will probe irqs later
> > SIS5597
> > ide0: BM-DMA at 0x4000-0x4007, BIOS settings hda:pio, hdb:pio
> > ide1: BM-DMA at 0x4008-0x400f, BIOS settings hdc:pio, hdb:pio
> for me the hang happens here. Other symptoms are about the same.

I had this happen too. The readout was for 2.4.17 behaviour with the given
config. I remember another kernel crash at this poit too.

-K.