From mboxrd@z Thu Jan 1 00:00:00 1970 From: hjl@lucon.org (H.J. Lu) To: tm@netcom.com (Toshiyasu Morita) Cc: gas2@cygnus.com Subject: Re: another binutils-2.8.1 bug? Date: Fri, 09 Jan 1998 20:22:00 -0000 Message-id: References: <199801040802.AAA17553@netcom9.netcom.com> X-SW-Source: 1998/msg00004.html > > > > 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 Doesn't 'l' mean "local"? > [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 > > > -- H.J. Lu (hjl@gnu.org)