From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 11267 invoked by alias); 3 Oct 2018 23:46:25 -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 11146 invoked by uid 89); 3 Oct 2018 23:46:25 -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=-1.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SPF_PASS autolearn=ham version=3.3.2 spammy= X-Spam-Status: No, score=-1.9 required=5.0 tests=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-it1-f181.google.com Received: from mail-it1-f181.google.com (HELO mail-it1-f181.google.com) (209.85.166.181) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Wed, 03 Oct 2018 23:46:23 +0000 Received: by mail-it1-f181.google.com with SMTP id 74-v6so10793993itw.1; Wed, 03 Oct 2018 16:46:23 -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=m0bfB4NmIDU5Y+bV5miekoGlTA5F9UHMiBY5SqwpyEI=; b=JSUS/u//E/cuoeMi//BD4cwBdVSySsILds16P3TG73MB4yjdfZn+BiECmMtl3myyb3 0PH5lSCP/Hjhgp5WZ/4XL8AsacYVq4R/jKHYyqqIxv7Mw2R7Yg71D/B2Wyvon3mw0sRd MOayglVtimuSL28tP3uUt+BHYpPCt9rBXtmz+Rrys72Vi8tXM4f3hDnWCNSSO8RPQa77 J9aQFl7ZqiXaRdIuotZ02mDUEBNyzVAPrWAW1ewVU1cLp2I/CRKdkSoIXGGn+ABYtMe3 DbZMYDXpGvYb9tRUcPrKAWl6W6gkohegC2/ij95H3+FJW5nwGMzYcO6mNtibfoztpbhx wb/w== 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=m0bfB4NmIDU5Y+bV5miekoGlTA5F9UHMiBY5SqwpyEI=; b=N5aTFl1kYwoaoD+g4CHDeYZ/XYd5OFlCbGUG2RmLSjERd3I8ITGYuY3MJGEbK7Zcai zKzqkeqKqgDzhzRdFh+gh1cUeg5o2MZmeOIGl0PvNtPZtYDO8lZrwQmsPnP1DoTpFfhd zTN4b4/zxqeInqgSVchs4Q3OYUCO2O5jXo15Fbesto/9d2QY4cFwa/U7EZrAeLZdsQQU YuYSMZVlEXP5gUiItxdoTALjxAsJOIbcIroDzbX8d2DffSxVrlScGvkpo/9eyzaxYlkk ls47fm6FEObPyKY48d9aHn3hk92mIX+FulF0ZWCCRsCRnBn+8AMza1yoLsS6UxmIDb/M UpSg== X-Gm-Message-State: ABuFfojaJ/RU1E5zjc7Qvf0z/dFYdBJBMfdmXEihLcZVFjBaFPLc1z0K z1QLqmejAj0NhskhXH4aST+FJPukxI0VppgV9y8= X-Google-Smtp-Source: ACcGV631M3X/wfYkt/DoHB31kWyeBqZRzrFZOeg/W6m2Cy6xnFBNymCVrMcddsCwC3I0gIUgGBwvIDdDZWR2/FR/6Y4= X-Received: by 2002:a24:fa49:: with SMTP id v70-v6mr3094739ith.59.1538610382334; Wed, 03 Oct 2018 16:46:22 -0700 (PDT) MIME-Version: 1.0 References: <20181003075416.GD3179@bubble.grove.modra.org> In-Reply-To: <20181003075416.GD3179@bubble.grove.modra.org> From: Cary Coutant Date: Mon, 01 Jan 2018 00:00:00 -0000 Message-ID: Subject: Re: RFC: Add GNU_PROPERTY_NEED_PHDRS To: Alan Modra Cc: "H.J. Lu" , Michael Matz , Rich Felker , "Carlos O'Donell" , Florian Weimer , nsz@port70.net, Jan Beulich , Binutils , gnu-gabi@sourceware.org Content-Type: text/plain; charset="UTF-8" X-IsSubscribed: yes X-SW-Source: 2018-q4/txt/msg00010.txt.bz2 > > > 3. Ld won't create a PT_LOAD segment just to hold phdrs. > > > > You seem to be breezing right past the idea of doing exactly this. > > Why? The scripting language already allows you to declare which > > segment should include FILEHDR and PHDRS. For -z separate-code, why > > not use a default linker script with something like the following? > > > > PHDRS > > { > > headers PT_PHDR PHDRS ; > > interp PT_INTERP ; > > header_seg PT_LOAD FILEHDR PHDRS ; > > text PT_LOAD ; > > data PT_LOAD ; > > dynamic PT_DYNAMIC ; > > } > > The script idea is probably not practical in view of all the > variations of headers we'd need. PT_NOTE, PT_TLS, PT_GNU_EH_FRAME, > PT_GNU_STACK, PT_GNU_RELRO come to mind, some of which depend on > executable contents. I don't understand why you say it's not practical. How does the number of variations of individual program header table entries matter? -cary