Skip to contentSkip to conversation

link error in usbdrv.o (2.4.17-pre5)

DISCUSSION Will Dyson 4 participants 4 messages Dec 6, 2001 – Dec 7, 2001

lore
Share & tools
lore

Will Dyson

author
#0 lore raw

When compiling 2.4.17-pre5 with the usb compiled in, the final link produces the following error:

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/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/pci/driver.o drivers/video/video.o drivers/usb/usbdrv.o drivers/input/inputdrv.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/usb/usbdrv.o(.text.lock+0x5dc): undefined reference to `local symbols in discarded section .text.exit'

The .config that produces this error can be found here: <http://cs.earlham.edu/~will/err_config>

Signature · 1 line
Will Dyson
#1 lore raw
Quoted 2 lines

When compiling 2.4.17-pre5 with the usb compiled in, the final link produces the following error:

Downgrade your Debian binutils to the previous version rather than the one in the snapshot of the week. (Its probably fair to say its not the binutils fault thats just the fix)

#2 lore raw
In reply to Will Dyson

Dans un message du 06 déc à 18:10, Will Dyson écrivait :

Quoted 10 lines

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/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/pci/driver.o drivers/video/video.o

Quoted 8 lines
drivers/usb/usbdrv.o drivers/input/inputdrv.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/usb/usbdrv.o(.text.lock+0x5dc): undefined reference to `local symbols in discarded section .text.exit'

Are you running Debian unstable ? I had the same problem with latest binutils. Downgrading fixed the problem.

Signature · 3 lines
Guillaume Morin <[email protected]>

                       Sauvez un arbre, mangez un castor
#3 lore raw
In reply to Will Dyson
Quoted 2 lines · Will Dyson

When compiling 2.4.17-pre5 with the usb compiled in, the final link produces the following error:

Enable CONFIG_HOTPLUG to fix this for now.

thanks,

greg k-h