This is the mail archive of the gas2@sourceware.cygnus.com mailing list for the gas2 project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

another binutils-2.8.1 bug?




  Host: i386-linux
Target: m68k-linux
  Tool: binutils-2.8.1 ld using m68k-elf

I seem to have found a bug in binutils-2.8.1. The linker fails to find
a reference to "putpacket()" even though it is contained in one of the
object files.

Here's the output:

m68k-linux-ld -m m68kelf -T /usr/src/linux-sun3-2.1.72/arch/m68k/vmlinux-sun3.lds
 -N arch/m68k/kernel/head.o init/main.o init/version.o \
arch/m68k/kernel/kernel.o arch/m68k/mm/mm.o kernel/kernel.o mm/mm.o fs/fs.o ipc/ipc.o arch/m68k/sun3/sun3.o arch/m68k/sun3/prom/promlib.a arch/m68k/fpsp040/fpsp.o
 \
fs/filesystems.a \
net/network.a \
drivers/block/block.a drivers/char/char.a drivers/misc/misc.a drivers/net/net.a drivers/video/video.a \
/usr/src/linux-sun3-2.1.72/lib/lib.a arch/m68k/lib/lib.a \
-o vmlinux -M > ld.lst
arch/m68k/sun3/prom/promlib.a(printf.o): In function `prom_printf':
/usr/src/linux-sun3-2.1.72/arch/m68k/sun3/prom/printf.c:46: undefined reference to `putpacket'
make: *** [vmlinux] Error 1
[root@piglet linux]# m68k-linux-objdump --syms arch/m68k/kernel/kernel.o | grep putpacket
000085d4 l     F .text  000000ac putpacket
[root@piglet linux]#

I have uploaded the files necessary to replicate this problem to:

ftp://shell14.ba.best.com/pub.t/tm2/bug2.tar.gz

Toshi