From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 18737 invoked by alias); 24 Jun 2014 14:38:06 -0000 Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org Received: (qmail 18726 invoked by uid 89); 24 Jun 2014 14:38:05 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.7 required=5.0 tests=AWL,BAYES_00 autolearn=ham version=3.3.2 X-HELO: rock.gnat.com Received: from rock.gnat.com (HELO rock.gnat.com) (205.232.38.15) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES256-SHA encrypted) ESMTPS; Tue, 24 Jun 2014 14:38:02 +0000 Received: from localhost (localhost.localdomain [127.0.0.1]) by filtered-rock.gnat.com (Postfix) with ESMTP id 7D235116273; Tue, 24 Jun 2014 10:38:00 -0400 (EDT) Received: from rock.gnat.com ([127.0.0.1]) by localhost (rock.gnat.com [127.0.0.1]) (amavisd-new, port 10024) with LMTP id q0qxwunsKJy2; Tue, 24 Jun 2014 10:38:00 -0400 (EDT) Received: from joel.gnat.com (localhost.localdomain [127.0.0.1]) by rock.gnat.com (Postfix) with ESMTP id 5245A1161BE; Tue, 24 Jun 2014 10:38:00 -0400 (EDT) Received: by joel.gnat.com (Postfix, from userid 1000) id A21EE40F38; Tue, 24 Jun 2014 07:37:59 -0700 (PDT) Date: Tue, 24 Jun 2014 14:38:00 -0000 From: Joel Brobecker To: Jan Kratochvil Cc: gdb-patches@sourceware.org Subject: Re: [7.8] Suggested fix of --enable-targets=all on 32-bit host Message-ID: <20140624143759.GG5281@adacore.com> References: <20140624142554.GA6971@host2.jankratochvil.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20140624142554.GA6971@host2.jankratochvil.net> User-Agent: Mutt/1.5.21 (2010-09-15) X-SW-Source: 2014-06/txt/msg00858.txt.bz2 > suggesting to backport for 7.8: > [PATCH] bfd/targets: create elf64 selvecs only if 64-bit bfd support is enabled. > https://sourceware.org/ml/binutils/2014-06/msg00176.html > https://sourceware.org/git/?p=binutils-gdb.git;a=commit;h=886aba9eff0eba428e634f579e8999b67da01b57 > > as currently on i686 host (that is without --enable-64-bit-bfd): > ./configure --enable-targets=all;make > will fail with: > ../bfd/.libs/libbfd.a(targets.o):(.rodata+0xb0): undefined reference to `elf64_be_vec' > ../bfd/.libs/libbfd.a(targets.o):(.rodata+0xb4): undefined reference to `elf64_le_vec' > ../bfd/.libs/libbfd.a(targets.o):(.rodata+0xe0): undefined reference to `hppa_elf64_vec' > ../bfd/.libs/libbfd.a(targets.o):(.rodata+0xe4): undefined reference to `hppa_elf64_linux_vec' > ../bfd/.libs/libbfd.a(targets.o):(.rodata+0x164): undefined reference to `k1om_elf64_vec' > ../bfd/.libs/libbfd.a(targets.o):(.rodata+0x168): undefined reference to `k1om_elf64_fbsd_vec' > ../bfd/.libs/libbfd.a(targets.o):(.rodata+0x16c): undefined reference to `l1om_elf64_vec' > ../bfd/.libs/libbfd.a(targets.o):(.rodata+0x170): undefined reference to `l1om_elf64_fbsd_vec' > collect2: error: ld returned 1 exit status > Makefile:756: recipe for target 'as-new' failed > > It got broken by: > commit 2f67d686330300d4d27ff99ec47a970d744df8bb > Author: Alan Modra > Date: Fri May 2 20:11:49 2014 +0930 > Sort target vectors to suit renaming > and the 7.8 branch was created before the fix above happened. I agree. Would you mind backporting, or would you like me to? Thanks, Jan. -- Joel