From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 2846 invoked by alias); 16 Mar 2005 16:29:21 -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 2335 invoked from network); 16 Mar 2005 16:29:03 -0000 Received: from unknown (HELO cam-admin0.cambridge.arm.com) (193.131.176.58) by sourceware.org with SMTP; 16 Mar 2005 16:29:03 -0000 Received: from pc960.cambridge.arm.com (pc960.cambridge.arm.com [10.1.205.4]) by cam-admin0.cambridge.arm.com (8.12.10/8.12.10) with ESMTP id j2GGS84G010264; Wed, 16 Mar 2005 16:28:08 GMT Received: from pc960.cambridge.arm.com (localhost.localdomain [127.0.0.1]) by pc960.cambridge.arm.com (8.12.8/8.12.8) with ESMTP id j2GGSIIF021975; Wed, 16 Mar 2005 16:28:18 GMT Received: (from rearnsha@localhost) by pc960.cambridge.arm.com (8.12.8/8.12.8/Submit) id j2GGSImU021973; Wed, 16 Mar 2005 16:28:18 GMT X-Authentication-Warning: pc960.cambridge.arm.com: rearnsha set sender to rearnsha@gcc.gnu.org using -f Subject: Re: [PATCH] Fix thumb calls via PLT on ARM/SymbianOS From: Richard Earnshaw To: Ian Lance Taylor Cc: Julian Brown , Daniel Jacobowitz , binutils@sources.redhat.com In-Reply-To: References: <42383FF3.4080604@codesourcery.com> <1110982992.19581.35.camel@pc960.cambridge.arm.com> <20050316144218.GA27174@nevyn.them.org> <42384770.8030104@codesourcery.com> Content-Type: text/plain Content-Transfer-Encoding: 7bit Organization: GNU Message-Id: <1110990497.19581.51.camel@pc960.cambridge.arm.com> Mime-Version: 1.0 Date: Wed, 16 Mar 2005 16:54:00 -0000 X-SW-Source: 2005-03/txt/msg00449.txt.bz2 On Wed, 2005-03-16 at 16:10, Ian Lance Taylor wrote: > Julian Brown writes: > > > Would it be better to add a --target-arch (or something) flag to > > binutils at this point? That would tidy up a previous patch of mine, > > too. I don't know if any other targets have, or need, such an option. > > I think the linker should support a command line option to do what > OUTPUT_ARCH does in a linker script. I'm not convinced, but then I'm not entirely sure what OUTPUT_ARCH does. It appears that OUTPUT_ARCH uses bfd variant names, but the problem is that in the past this has worked by (ab)using bits in the ELF header which simply aren't available in the EABI. There's also a potential disaster in this area of the exploding cross-product: the core architecture is just one dimension in the matrix. > Perhaps the thing to do would be > to redefine the -A/--architecture option, which is only used for the > Intel i960. -A currently affects library search order, which we would > not want for the new option. However, I doubt that anybody uses the > i960 any more, and even if they do, they probably don't use the -A > option. I'd really like to be able to just pass -march through from the compiler. Anything solution that needs any remapping beyond a common prefix substitution in a gcc spec file is just a disaster waiting to happen. R.