From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 18406 invoked by alias); 1 Feb 2005 06:18:38 -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 18348 invoked from network); 1 Feb 2005 06:18:27 -0000 Received: from unknown (HELO rwcrmhc11.comcast.net) (204.127.198.35) by sourceware.org with SMTP; 1 Feb 2005 06:18:27 -0000 Received: from lucon.org ([24.6.212.230]) by comcast.net (rwcrmhc11) with ESMTP id <2005020106182601300k4052e>; Tue, 1 Feb 2005 06:18:27 +0000 Received: by lucon.org (Postfix, from userid 1000) id C70C463FD1; Mon, 31 Jan 2005 22:18:26 -0800 (PST) Date: Tue, 01 Feb 2005 06:18:00 -0000 From: "H. J. Lu" To: binutils@sources.redhat.com Cc: amodra@bigpond.net.au Subject: Re: IA64 linker is totally broken (Re: PATCH: ELF linker is broken) Message-ID: <20050201061826.GA5603@lucon.org> References: <20050130192249.GA21997@lucon.org> <20050131000227.GF11595@bubble.modra.org> <20050131071308.GH11595@bubble.modra.org> <20050131212203.GA27701@lucon.org> <20050131220214.GA28324@lucon.org> <20050201000825.GK11595@bubble.modra.org> <20050201055618.GA5203@lucon.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20050201055618.GA5203@lucon.org> User-Agent: Mutt/1.4.1i X-SW-Source: 2005-02/txt/msg00015.txt.bz2 On Mon, Jan 31, 2005 at 09:56:18PM -0800, H. J. Lu wrote: > On Tue, Feb 01, 2005 at 10:38:25AM +1030, Alan Modra wrote: > > On Mon, Jan 31, 2005 at 02:02:14PM -0800, H. J. Lu wrote: > > > * elflink.c (_bfd_elf_link_create_dynamic_sections): Discard > > > previous "_DYNAMIC" before creating the new one. > > > > I'll be commiting a patch that looks similar to this one in a few > > minutes. > > > > Alan, > > I have told you that your patch > > http://sources.redhat.com/ml/binutils/2005-01/msg00529.html > > doesn't work on ia64: > > http://sources.redhat.com/ml/binutils/2005-01/msg00561.html > > Now I got > > FAIL: bootstrap > FAIL: bootstrap with strip > FAIL: bootstrap with --traditional-format > FAIL: bootstrap with --no-keep-memory > FAIL: bootstrap with --relax > FAIL: vers23d > FAIL: vers23 > FAIL: visibility (hidden_normal) > FAIL: visibility (hidden_normal) (PIC main) > FAIL: visibility (protected) > FAIL: visibility (protected) (PIC main) > FAIL: visibility (protected_undef_def) > FAIL: visibility (protected_undef_def) (PIC main) > FAIL: visibility (normal) > FAIL: visibility (normal) (PIC main) > > on Linux/ia64 with > > http://sources.redhat.com/ml/binutils/2005-02/msg00005.html I can't build anything on ia64 with the new linker. Without --as-needed, I got ./ld -dynamic-linker /lib/ld-linux-ia64.so.2 -o build/foo /usr/lib/crt1.o /usr/lib/crti.o ./crtbegin.o -L. -Lstage1 -L/usr/gcc-4.0/lib/gcc/ia64-unknown-linux-gnu/4.0.0 -L/usr/gcc-4.0/lib/gcc/ia64-unknown-linux-gnu/4.0.0/../../.. build/genmddeps.o build/gensupport.o build/dummy-conditions.o build/rtl.o build/read-rtl.o build/ggc-none.o build/min-insn-modes.o build/errors.o ../build-ia64-unknown-linux-gnu/libiberty/libiberty.a -lgcc -lgcc_s -lunwind -lc -lgcc -lgcc_s -lunwind ./crtend.o /usr/lib/crtn.o ./ld: BFD 2.15.94.0.3 20050201 assertion fail /net/gnu/export/linux/src/binutils/binutils/bfd/elf-strtab.c:241 ./ld: BFD 2.15.94.0.3 20050201 assertion fail /net/gnu/export/linux/src/binutils/binutils/bfd/elf-strtab.c:241 Or I got ./ld -dynamic-linker /lib/ld-linux-ia64.so.2 -o build/foo /usr/lib/crt1.o /usr/lib/crti.o ./crtbegin.o -L. -Lstage1 -L/usr/gcc-4.0/lib/gcc/ia64-unknown-linux-gnu/4.0.0 -L/usr/gcc-4.0/lib/gcc/ia64-unknown-linux-gnu/4.0.0/../../.. build/genmddeps.o build/gensupport.o build/dummy-conditions.o build/rtl.o build/read-rtl.o build/ggc-none.o build/min-insn-modes.o build/errors.o ../build-ia64-unknown-linux-gnu/libiberty/libiberty.a -lgcc --as-needed -lgcc_s -lunwind --no-as-needed -lc -lgcc --as-needed -lgcc_s -lunwind --no-as-needed ./crtend.o /usr/lib/crtn.o build/gensupport.o: In function `cmp_c_test': /net/gnu/export/gnu/src/gcc/gcc/gcc/gensupport.c:1108: undefined reference to `strcmp' build/gensupport.o: In function `eq_struct_pred_data': /net/gnu/export/gnu/src/gcc/gcc/gcc/gensupport.c:1196: undefined reference to `strcmp' build/gensupport.o: In function `init_md_reader_args_cb': /net/gnu/export/gnu/src/gcc/gcc/gcc/gensupport.c:963: undefined reference to `strrchr' /net/gnu/export/gnu/src/gcc/gcc/gcc/gensupport.c:446: undefined reference to `strcmp' /net/gnu/export/gnu/src/gcc/gcc/gcc/gensupport.c:365: undefined reference to `strcmp' /net/gnu/export/gnu/src/gcc/gcc/gcc/gensupport.c:373: undefined reference to `strcmp' /net/gnu/export/gnu/src/gcc/gcc/gcc/gensupport.c:383: undefined reference to `strcmp' /net/gnu/export/gnu/src/gcc/gcc/gcc/gensupport.c:489: undefined reference to `strcmp' build/gensupport.o:/net/gnu/export/gnu/src/gcc/gcc/gcc/gensupport.c:491: more undefined references to `strcmp' follow build/read-rtl.o: In function `apply_macro_to_string': /net/gnu/export/gnu/src/gcc/gcc/gcc/read-rtl.c:281: undefined reference to `_obstack_newchunk' /net/gnu/export/gnu/src/gcc/gcc/gcc/read-rtl.c:282: undefined reference to `_obstack_newchunk' /net/gnu/export/gnu/src/gcc/gcc/gcc/read-rtl.c:287: undefined reference to `_obstack_newchunk' build/read-rtl.o: In function `add_condition_to_string': /net/gnu/export/gnu/src/gcc/gcc/gcc/read-rtl.c:407: undefined reference to `asprintf' build/read-rtl.o: In function `read_name': /net/gnu/export/gnu/src/gcc/gcc/gcc/read-rtl.c:644: undefined reference to `ungetc' build/read-rtl.o: In function `read_escape': /net/gnu/export/gnu/src/gcc/gcc/gcc/read-rtl.c:726: undefined reference to `_obstack_newchunk' /net/gnu/export/gnu/src/gcc/gcc/gcc/read-rtl.c:722: undefined reference to `_obstack_newchunk' /net/gnu/export/gnu/src/gcc/gcc/gcc/read-rtl.c:715: undefined reference to `_obstack_newchunk' build/read-rtl.o: In function `read_string': /net/gnu/export/gnu/src/gcc/gcc/gcc/read-rtl.c:788: undefined reference to `_obstack_newchunk' /net/gnu/export/gnu/src/gcc/gcc/gcc/read-rtl.c:767: undefined reference to `_obstack_newchunk' build/read-rtl.o:/net/gnu/export/gnu/src/gcc/gcc/gcc/read-rtl.c:791: more undefined references to `_obstack_newchunk' follow build/read-rtl.o: In function `def_name_eq_p': /net/gnu/export/gnu/src/gcc/gcc/gcc/read-rtl.c:890: undefined reference to `strcmp' build/read-rtl.o: In function `read_mapping': /net/gnu/export/gnu/src/gcc/gcc/gcc/read-rtl.c:1030: undefined reference to `ungetc' build/read-rtl.o: In function `read_rtx_1': /net/gnu/export/gnu/src/gcc/gcc/gcc/read-rtl.c:1153: undefined reference to `strcmp' /net/gnu/export/gnu/src/gcc/gcc/gcc/read-rtl.c:1161: undefined reference to `strcmp' build/read-rtl.o: In function `read_constants': /net/gnu/export/gnu/src/gcc/gcc/gcc/read-rtl.c:925: undefined reference to `ungetc' /net/gnu/export/gnu/src/gcc/gcc/gcc/read-rtl.c:935: undefined reference to `strcmp' build/read-rtl.o: In function `read_rtx_1': /net/gnu/export/gnu/src/gcc/gcc/gcc/read-rtl.c:925: undefined reference to `ungetc' /net/gnu/export/gnu/src/gcc/gcc/gcc/read-rtl.c:1166: undefined reference to `strcmp' /net/gnu/export/gnu/src/gcc/gcc/gcc/read-rtl.c:1171: undefined reference to `strcmp' /net/gnu/export/gnu/src/gcc/gcc/gcc/read-rtl.c:1176: undefined reference to `strcmp' /net/gnu/export/gnu/src/gcc/gcc/gcc/read-rtl.c:1181: undefined reference to `strcmp' /net/gnu/export/gnu/src/gcc/gcc/gcc/read-rtl.c:1067: undefined reference to `strcmp' /net/gnu/export/gnu/src/gcc/gcc/gcc/read-rtl.c:1204: undefined reference to `ungetc' /net/gnu/export/gnu/src/gcc/gcc/gcc/read-rtl.c:1223: undefined reference to `ungetc' /net/gnu/export/gnu/src/gcc/gcc/gcc/read-rtl.c:1246: undefined reference to `ungetc' /net/gnu/export/gnu/src/gcc/gcc/gcc/read-rtl.c:1248: undefined reference to `_obstack_newchunk' /net/gnu/export/gnu/src/gcc/gcc/gcc/read-rtl.c:1270: undefined reference to `ungetc' /net/gnu/export/gnu/src/gcc/gcc/gcc/read-rtl.c:1303: undefined reference to `_obstack_newchunk' /net/gnu/export/gnu/src/gcc/gcc/gcc/read-rtl.c:1304: undefined reference to `_obstack_newchunk' /net/gnu/export/gnu/src/gcc/gcc/gcc/read-rtl.c:1306: undefined reference to `_obstack_newchunk' build/read-rtl.o: In function `read_rtx': /net/gnu/export/gnu/src/gcc/gcc/gcc/read-rtl.c:1104: undefined reference to `ungetc' /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 20050201 assertion fail /net/gnu/export/linux/src/binutils/binutils/bfd/elf-strtab.c:241 ./ld: BFD 2.15.94.0.3 20050201 assertion fail /net/gnu/export/linux/src/binutils/binutils/bfd/elf-strtab.c:241 H.J.