From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 87673 invoked by alias); 2 Oct 2018 15:36:14 -0000 Mailing-List: contact gnu-gabi-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Post: List-Help: List-Subscribe: Sender: gnu-gabi-owner@sourceware.org Received: (qmail 87567 invoked by uid 89); 2 Oct 2018 15:36:13 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Checked: by ClamAV 0.100.1 on sourceware.org X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.4 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SPF_PASS autolearn=ham version=3.3.2 spammy=Hx-languages-length:833 X-Spam-Status: No, score=-2.4 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SPF_PASS autolearn=ham version=3.3.2 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on sourceware.org X-Spam-Level: X-Spam-User: qpsmtpd, 2 recipients X-HELO: mail-oi1-f173.google.com Received: from mail-oi1-f173.google.com (HELO mail-oi1-f173.google.com) (209.85.167.173) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Tue, 02 Oct 2018 15:36:11 +0000 Received: by mail-oi1-f173.google.com with SMTP id u74-v6so1847812oia.11; Tue, 02 Oct 2018 08:36:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=p+bWDYb8Z49B/+cwMJPeDBZYFkjcBqRQZCWQj6pjihs=; b=nxcrEkhCNilxYg+m1TFmPaViBLI3OWd5mbqpBsFJHSpOcnAm+nRwSIR+kYEzelGNLf +7c9hSG2GVMLqAXroZLFyKa25VWk3IRecvWU5eWIh/G4IKK84Y9y3KeY2u1SbDfYDtGj ZixsT3E/v6InkJFsbt6ai96dWH/FbeXWR1aLLfzbk1Oiw3rI2XNZ/sOqgTtiY56AXCxY 2HLlPkV+XhClri8+UKPkjLLOim/ExUCjssF5Jh3hdwRXhS281N+99SEFC3E2VulmGCBB x+vACDjnWH31U0ML9+r8XVO8TuatlhcI+lcK0lhaFALf+sR+uKi9WrcjCsKH4GBK1Q1F lzaA== 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=p+bWDYb8Z49B/+cwMJPeDBZYFkjcBqRQZCWQj6pjihs=; b=ZBlTck70NYwmAEBikvpDiIzVurz0sO7zMwqKfLnfTVNCnVoPeCeX12XqFsHefxhkLj fSHDbQW6V3No4B7plbYzKJXOyQrempyx/bDdlqn0UYdAajY2QiIQKvUl0gDRbQl7hqNO PvJhlSzvcgMlKMF5Mt764zLgL6WYzOBNV8SGlQjeIQ5O/Kz/8sgsGoBCdFW0x8yG3pL0 9zxPyfg8wUFQ351IS35WcUK0typ1W72nvjcVYCWk8fw0/lRAx+Yj1Q9QkE/blXTmYqaP g5CD1zY+/MpUfUaljXFHcOICeihnyjf6Z/98lRgqyzS0/pYq/xh3x5TMwqYaszH9FONI HSIw== X-Gm-Message-State: ABuFfojTVhZT4kyzvJVMXY+zBKX+F636ZTx1y0OE5HKeCaNG2/0ABesA VkuxF528uI6fE/br0U0WTQomeYltJA2AhYJCIR8= X-Google-Smtp-Source: ACcGV60UrB9owVGh64MJG5dziXqJJ+WxKABMSfS1NycbG8BRTF73nxM/1Ul4CtW/WgdwFCYMFG17D/QRDRCjhA6I4cw= X-Received: by 2002:aca:af91:: with SMTP id y139-v6mr8171589oie.322.1538494570037; Tue, 02 Oct 2018 08:36:10 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: "H.J. Lu" Date: Mon, 01 Jan 2018 00:00:00 -0000 Message-ID: Subject: Re: RFC: Add GNU_PROPERTY_NEED_PHDRS To: Michael Matz Cc: Rich Felker , Cary Coutant , "Carlos O'Donell" , Florian Weimer , Szabolcs Nagy , Jan Beulich , Binutils , gnu-gabi@sourceware.org Content-Type: text/plain; charset="UTF-8" X-IsSubscribed: yes X-SW-Source: 2018-q4/txt/msg00003.txt.bz2 On Tue, Oct 2, 2018 at 8:13 AM Michael Matz wrote: > > Hi, > > On Tue, 2 Oct 2018, H.J. Lu wrote: > > > A .note.gnu.property section will lead to a read-only data PT_LOAD segment > > as the first PT_LOAD segment: > > Yes, and it's a hack. This section isn't necessary, it merely is the > easiest (?) way you found to force ld to create the PT_LOAD segment you > want. What about linker scripts that filter out all .note sections? You > _still_ want the phdrs to be mapped in that case. You basically replace > the current state (where the phdrs are mapped by accident) with a > different state that still only works by accident. It would be better to > make this work by design not accident. > If linker script discards a section, all bets are off. Anything can happen. -- H.J.