From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 1251 invoked by alias); 3 May 2011 08:52:14 -0000 Received: (qmail 1239 invoked by uid 22791); 3 May 2011 08:52:12 -0000 X-SWARE-Spam-Status: No, hits=-1.8 required=5.0 tests=AWL,BAYES_00 X-Spam-Check-By: sourceware.org Received: from mel.act-europe.fr (HELO mel.act-europe.fr) (194.98.77.210) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Tue, 03 May 2011 08:51:57 +0000 Received: from localhost (localhost [127.0.0.1]) by filtered-smtp.eu.adacore.com (Postfix) with ESMTP id 478AECB0242; Tue, 3 May 2011 10:51:56 +0200 (CEST) Received: from mel.act-europe.fr ([127.0.0.1]) by localhost (smtp.eu.adacore.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id Z+WLArKa7tgH; Tue, 3 May 2011 10:51:53 +0200 (CEST) Received: from ulanbator.act-europe.fr (ulanbator.act-europe.fr [10.10.1.67]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) by mel.act-europe.fr (Postfix) with ESMTP id 3061BCB0238; Tue, 3 May 2011 10:51:53 +0200 (CEST) Subject: Re: Comments requested for proposed for ld scripting language extension Mime-Version: 1.0 (Apple Message framework v1084) Content-Type: text/plain; charset=us-ascii From: Tristan Gingold In-Reply-To: Date: Tue, 03 May 2011 08:52:00 -0000 Cc: Catherine Moore , binutils@sourceware.org Content-Transfer-Encoding: 7bit Message-Id: <0AADE1A0-9840-46A7-98E0-2DC973A4E1FA@adacore.com> References: <4DB99A38.1010801@codesourcery.com> <0AE7F26B-5214-479E-8B71-68CDE3A31511@adacore.com> To: Richard Sandiford X-IsSubscribed: yes 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 X-SW-Source: 2011-05/txt/msg00030.txt.bz2 On May 3, 2011, at 10:44 AM, Richard Sandiford wrote: > Tristan Gingold writes: >> I also think that you could make the design a little bit generic and >> allow boolean negation. What about something like: > > Sounds good, but... > >> >> .text : FLAGS (-SHF_PPC_VLE) >> { >> *(.text .text.* .gnu.linkonce.t.*) >> } >ram >> .text_vle : FLAGS (+SHF_PPC_VLE) >> { >> *(.text .text.* .gnu.linkonce.t.*) >> } >ram > > ...how about using C operators (SHF_PPC_VLE and !SHF_PPC_VLE) instead? > That'd be more consistent with other script expressions. Sure. >> Finally I wonder if the flags shouldn't be in the input section part, >> in order to make this feature even more generic: >> >> .text : >> { >> *(.text .text.* .gnu.linkonce.t.*) FLAGS (-SHF_PPC_VLE) >> } >ram > > While this might be useful in some cases, I think Catherine's version > is going to make the usual case easier. FWIW, I agree with Alan that > it fits nicely with the existing ONLY_IF_* constraints. > > Richard