From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 20550 invoked by alias); 28 May 2014 13:26:35 -0000 Mailing-List: contact binutils-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: binutils-owner@sourceware.org Received: (qmail 20531 invoked by uid 89); 28 May 2014 13:26:34 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.5 required=5.0 tests=AWL,BAYES_00,RP_MATCHES_RCVD,SPF_PASS autolearn=ham version=3.3.2 X-HELO: bes.se.axis.com Received: from bes.se.axis.com (HELO bes.se.axis.com) (195.60.68.10) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Wed, 28 May 2014 13:26:33 +0000 Received: from localhost (localhost [127.0.0.1]) by bes.se.axis.com (Postfix) with ESMTP id 4C7512E3CE for ; Wed, 28 May 2014 15:26:31 +0200 (CEST) Received: from bes.se.axis.com ([IPv6:::ffff:127.0.0.1]) by localhost (bes.se.axis.com [::ffff:127.0.0.1]) (amavisd-new, port 10024) with LMTP id 6PU2rlJLHXn4 for ; Wed, 28 May 2014 15:26:26 +0200 (CEST) Received: from boulder.se.axis.com (boulder.se.axis.com [10.0.2.104]) by bes.se.axis.com (Postfix) with ESMTP id 077532E381 for ; Wed, 28 May 2014 15:26:26 +0200 (CEST) Received: from boulder.se.axis.com (localhost [127.0.0.1]) by postfix.imss71 (Postfix) with ESMTP id E2A70C0B for ; Wed, 28 May 2014 15:26:25 +0200 (CEST) Received: from thoth.se.axis.com (thoth.se.axis.com [10.0.2.173]) by boulder.se.axis.com (Postfix) with ESMTP id D2F03BAC for ; Wed, 28 May 2014 15:26:25 +0200 (CEST) Received: from ignucius.se.axis.com (ignucius.se.axis.com [10.88.21.50]) by thoth.se.axis.com (Postfix) with ESMTP id D081C34005; Wed, 28 May 2014 15:26:25 +0200 (CEST) Received: from ignucius.se.axis.com (localhost [127.0.0.1]) by ignucius.se.axis.com (8.12.8p1/8.12.8/Debian-2woody1) with ESMTP id s4SDQPQD032142; Wed, 28 May 2014 15:26:25 +0200 Received: (from hp@localhost) by ignucius.se.axis.com (8.12.8p1/8.12.8/Debian-2woody1) id s4SDQPFn032138; Wed, 28 May 2014 15:26:25 +0200 Date: Wed, 28 May 2014 13:26:00 -0000 Message-Id: <201405281326.s4SDQPFn032138@ignucius.se.axis.com> From: Hans-Peter Nilsson To: binutils@sourceware.org In-reply-to: <201405270232.s4R2WUJL032457@ignucius.se.axis.com> (message from Hans-Peter Nilsson on Tue, 27 May 2014 04:32:30 +0200) Subject: Re: RFC: allow a first "=" to mean sysroot for all paths in linker-scripts? MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=iso-8859-1 Content-Transfer-Encoding: 8BIT X-SW-Source: 2014-05/txt/msg00255.txt.bz2 Bump for the request for comments. Also, tweaked bits in the TL;DR. > From: Hans-Peter Nilsson > Date: Tue, 27 May 2014 04:32:30 +0200 > Is there a reason not to allow a first character '=' to mean > sysroot-prefix for all paths inside linker scripts? Today, it's > interpreted that way for SEARCH_DIR, but elsewhere it's a syntax > error. (when not quoted) > GROUP ( /lib/libc.so.6 /lib/libc_nonshared.a AS_NEEDED ( /lib/ld.so.1 ) ) (for those who didn't read the original post, the suggestion is to allow "GROUP ( =/lib/libc.so.6 =/lib/libc_nonshared.a AS_NEEDED ( =/lib/ld.so.1 ) )" where the sysroot would be forced as opposed to "it depends".) > For a non-sysrooted cross-toolchain you make the above line work > by adjusting those paths manually in the installed script, > prefixing with the installation prefix. ...but requires the sysroot be replicated within the sysroot (e.g. by a parent-directory-chasing symlink) so your outermost sysroot directory path component better not have a name-conflict with a library. :) brgds, H-P