From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 22415 invoked by alias); 31 Jan 2005 18:38:20 -0000 Mailing-List: contact binutils-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: binutils-owner@sources.redhat.com Received: (qmail 22364 invoked from network); 31 Jan 2005 18:38:12 -0000 Received: from unknown (HELO rwcrmhc12.comcast.net) (216.148.227.85) by sourceware.org with SMTP; 31 Jan 2005 18:38:12 -0000 Received: from lucon.org ([24.6.212.230]) by comcast.net (rwcrmhc12) with ESMTP id <20050131183812014003jl8je>; Mon, 31 Jan 2005 18:38:12 +0000 Received: by lucon.org (Postfix, from userid 1000) id AC09863FD1; Mon, 31 Jan 2005 10:38:11 -0800 (PST) Date: Mon, 31 Jan 2005 18:38:00 -0000 From: "H. J. Lu" To: binutils@sources.redhat.com Subject: Re: IA64 linker is broken Message-ID: <20050131183811.GA25332@lucon.org> References: <20050130192249.GA21997@lucon.org> <20050131000227.GF11595@bubble.modra.org> <20050131071308.GH11595@bubble.modra.org> <20050131082924.GI11595@bubble.modra.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20050131082924.GI11595@bubble.modra.org> User-Agent: Mutt/1.4.1i X-SW-Source: 2005-01/txt/msg00561.txt.bz2 On Mon, Jan 31, 2005 at 06:59:24PM +1030, Alan Modra wrote: > On Mon, Jan 31, 2005 at 05:43:08PM +1030, Alan Modra wrote: > > @@ -6143,11 +6210,7 @@ elf_link_output_extsym (struct elf_link_ > > const struct elf_backend_data *bed; > > > > if (h->root.type == bfd_link_hash_warning) > > - { > > - h = (struct elf_link_hash_entry *) h->root.u.i.link; > > - if (h->root.type == bfd_link_hash_new) > > - return TRUE; > > - } > > + h = (struct elf_link_hash_entry *) h->root.u.i.link; > > > > /* Decide whether to output this symbol in this pass. */ > > if (eoinfo->localsyms) > > Oops, this hunk wasn't supposed to be included. It doesn't work on ia64. Now I am getting gnu-2:pts/1[5]> stage1/xgcc -Bstage1/ -B/usr/gcc-4.0/ia64-unknown-linux-gnu/bin/ -DUSE_LIBUNWIND_EXCEPTIONS -g -O2 -DIN_GCC -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -pedantic -Wno-long-long -Wno-variadic-macros -Wold-style-definition -Werror -DHAVE_CONFIG_H -DGENERATOR_FILE -o build/gengenrtl \ build/gengenrtl.o build/errors.o ../build-ia64-unknown-linux-gnu/libiberty/libiberty.a -B./ /usr/lib/crt1.o:(.dynamic+0x0): multiple definition of `_DYNAMIC' /usr/lib/crt1.o: In function `_start': : undefined reference to `__libc_csu_init' build/gengenrtl.o: In function `find_formats': /net/gnu/export/gnu/src/gcc/gcc/gcc/gengenrtl.c:178: undefined reference to `strcmp' build/gengenrtl.o: In function `genlegend': /net/gnu/export/gnu/src/gcc/gcc/gcc/gengenrtl.c:289: undefined reference to `puts' build/gengenrtl.o: In function `gencode': /net/gnu/export/gnu/src/gcc/gcc/gcc/gengenrtl.c:322: undefined reference to `puts' /net/gnu/export/gnu/src/gcc/gcc/gcc/gengenrtl.c:323: undefined reference to `puts' /net/gnu/export/gnu/src/gcc/gcc/gcc/gengenrtl.c:324: undefined reference to `puts' /net/gnu/export/gnu/src/gcc/gcc/gcc/gengenrtl.c:325: undefined reference to `puts' build/gengenrtl.o:/net/gnu/export/gnu/src/gcc/gcc/gcc/gengenrtl.c:326: more undefined references to `puts' follow build/gengenrtl.o: In function `main': /net/gnu/export/gnu/src/gcc/gcc/gcc/gengenrtl.c:160: undefined reference to `strcmp' build/gengenrtl.o: In function `special_rtx': /net/gnu/export/gnu/src/gcc/gcc/gcc/gengenrtl.c:146: undefined reference to `strcmp' build/gengenrtl.o: In function `main': /net/gnu/export/gnu/src/gcc/gcc/gcc/gengenrtl.c:245: undefined reference to `puts' /net/gnu/export/gnu/src/gcc/gcc/gcc/gengenrtl.c:146: undefined reference to `strcmp' /net/gnu/export/gnu/src/gcc/gcc/gcc/gengenrtl.c:146: undefined reference to `strcmp' /net/gnu/export/gnu/src/gcc/gcc/gcc/gengenrtl.c:146: undefined reference to `strcmp' /net/gnu/export/gnu/src/gcc/gcc/gcc/gengenrtl.c:146: undefined reference to `strcmp' /usr/lib/libc_nonshared.a(elf-init.oS): In function `__libc_csu_init': : undefined reference to `__init_array_start' /usr/lib/libc_nonshared.a(elf-init.oS): In function `__libc_csu_init': : undefined reference to `__init_array_start' ./ld: BFD 2.15.94.0.3 20050130 assertion fail /net/gnu/export/linux/src/binutils/binutils/bfd/elf-strtab.c:241 collect2: ld returned 1 exit status H.J.