From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-yb1-xb2e.google.com (mail-yb1-xb2e.google.com [IPv6:2607:f8b0:4864:20::b2e]) by sourceware.org (Postfix) with ESMTPS id 967EC383F849 for ; Tue, 2 Jun 2020 12:49:57 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 967EC383F849 Received: by mail-yb1-xb2e.google.com with SMTP id m16so6639550ybf.4 for ; Tue, 02 Jun 2020 05:49:57 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=nxVEzly7bJXVh1qWxll6t4yAHNnn2g1BpzMIsh4ynPM=; b=Nkt9QAglgndg6KSst9xnkqrYjbzs/e0GZkhHqapML6/iIVqJw1FxTQhsZx+xzSlFRR 92g/IXZGuiwl9BgLo+eRylFmGAaP0i0ldwdbF0sQmQ4ibaeDEIMtTeZ/FT1HXcAyyLHT ESTR34lNrZ+J8bAr9wdpLUEtJb5NXT2d/F7K10uvfjLUIUE5J1ApQEE0msor12Lc3Th3 P0ws5/v3ZhQ+oD3FW1mB0NpNBxKWONogAdVpUQc5tl+cshhmTNHuH7BmvzO+xkotREL/ hlfR3gZhblvgQw3lJXAggpyqpBMrISjSgpZMyERCTMEiOryeguRbfPMqLY42r5q+NBIX pWiQ== X-Gm-Message-State: AOAM533cF7cIQyDxa0VElr6jcuT2GIrs+GGwJjMHKQkVY1n36cab/9Ie KawhJ5Lv9A5DVQgxy2D3lFJ0lSycFi8UDRisuCXxJ/7uDT0= X-Google-Smtp-Source: ABdhPJylV7nrMBjmLTpSTvYXXnFv7T3Z8eBEAMynj62swaTjt+f9gxKuXg9+cjQ6jYY30Jmiz0V2dEynkdsyS/45QdY= X-Received: by 2002:a25:c054:: with SMTP id c81mr26845054ybf.76.1591102197194; Tue, 02 Jun 2020 05:49:57 -0700 (PDT) MIME-Version: 1.0 References: <20200219071950.GP5570@bubble.grove.modra.org> <20200219222336.GU5570@bubble.grove.modra.org> <20200220081517.GX5570@bubble.grove.modra.org> <84e45483-76c4-eb22-b75c-51076a711b89@redhat.com> In-Reply-To: From: Alexander Fedotov Date: Tue, 2 Jun 2020 15:49:44 +0300 Message-ID: Subject: Re: [PATCH] Add support for non-contiguous memory regions To: Christophe Lyon Cc: Nick Clifton , binutils X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_FROM, HTML_MESSAGE, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on server2.sourceware.org Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.29 X-BeenThere: binutils@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Binutils mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 02 Jun 2020 12:49:59 -0000 Hello Christophe I found it very useful feature. But I'm just curious if it is possible to extend linker syntax to support syntax with output regions separated by OR : text : { *(.text*) } > REGION0 | REGION1 | REGION2 It is more convenient in some cases. For example CMSIS has linker script like this: .text : { KEEP(*(.vectors)) *(.text*) KEEP(*(.init)) KEEP(*(.fini)) /* .ctors */ *crtbegin.o(.ctors) *crtbegin?.o(.ctors) *(EXCLUDE_FILE(*crtend?.o *crtend.o) .ctors) *(SORT(.ctors.*)) *(.ctors) /* .dtors */ *crtbegin.o(.dtors) *crtbegin?.o(.dtors) *(EXCLUDE_FILE(*crtend?.o *crtend.o) .dtors) *(SORT(.dtors.*)) *(.dtors) *(.rodata*) KEEP(*(.eh_frame*)) } > FLASH So that we have to duplicate this rather than use | in output regions. What do you think? Alex On Fri, Mar 13, 2020 at 5:46 PM Christophe Lyon via Binutils < binutils@sourceware.org> wrote: > On Fri, 13 Mar 2020 at 15:21, Nick Clifton wrote: > > > > Hi Christophe, > > > > > Ping? > > > > > > https://sourceware.org/pipermail/binutils/2020-February/109942.html > > > > Oops - sorry - the patch is good. Approved - please apply. > > > > Thanks! > Pushed as abf874aafe3d717573e4a48bf0e3c6334e666a55 > > Christophe > > > Cheers > > Nick > > >