From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 57743 invoked by alias); 27 Sep 2018 08:33:40 -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 9699 invoked by uid 89); 27 Sep 2018 08:21:45 -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,SPF_HELO_PASS autolearn=ham version=3.3.2 spammy=H*i:sk:5BAC7D6, H*f:sk:5BAC7D6, Hx-languages-length:765 X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_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: mx1.redhat.com Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Thu, 27 Sep 2018 08:21:44 +0000 Received: from smtp.corp.redhat.com (int-mx07.intmail.prod.int.phx2.redhat.com [10.5.11.22]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id D652381DFA; Thu, 27 Sep 2018 08:21:42 +0000 (UTC) Received: from oldenburg.str.redhat.com (ovpn-116-50.ams2.redhat.com [10.36.116.50]) by smtp.corp.redhat.com (Postfix) with ESMTPS id C9EF8106A797; Thu, 27 Sep 2018 08:21:41 +0000 (UTC) From: Florian Weimer To: "Jan Beulich" Cc: "H.J. Lu" , , Subject: Re: RFC: Add SHT_GNU_PHDRS References: <87tvmbv8hp.fsf@oldenburg.str.redhat.com> <5BAC7D6802000078001EC6D1@prv1-mh.provo.novell.com> Date: Mon, 01 Jan 2018 00:00:00 -0000 In-Reply-To: <5BAC7D6802000078001EC6D1@prv1-mh.provo.novell.com> (Jan Beulich's message of "Thu, 27 Sep 2018 00:49:12 -0600") Message-ID: <87pnwzuz8r.fsf@oldenburg.str.redhat.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.3 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Scanned-By: MIMEDefang 2.84 on 10.5.11.22 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.25]); Thu, 27 Sep 2018 08:21:42 +0000 (UTC) X-IsSubscribed: yes X-SW-Source: 2018-q3/txt/msg00012.txt.bz2 * Jan Beulich: >>>> On 27.09.18 at 07:01, wrote: >> * H. J. Lu: >> >>> I am proposing >>> >>> #define SHT_GNU_PHDRS 0x6ffffff4 /* Dummy section for program header */ >>> >>> This is a special read-only SHF_ALLOC zero-size data section. It is the >>> first output section, which will force a data PT_LOAD segment with program >>> header before the code-only PT_LOAD segment, >> >> Is it actually a requirement in the ELF specification that all bits >> loaded via segments are covered by sections as well? > > Hardly, because the presence of a section table isn't required > in the first place in an executable (iirc). I think so too, and that is why I don't understand this section hack is needed. Thanks, Florian