From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 97091 invoked by alias); 27 Sep 2018 22:31:07 -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 96938 invoked by uid 89); 27 Sep 2018 22:30:53 -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=mere, H*i:sk:874lebt, H*f:sk:874lebt 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-f179.google.com Received: from mail-it1-f179.google.com (HELO mail-it1-f179.google.com) (209.85.166.179) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Thu, 27 Sep 2018 22:30:50 +0000 Received: by mail-it1-f179.google.com with SMTP id q70-v6so476334itb.3; Thu, 27 Sep 2018 15:30:46 -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=abGbYtrPyREWN2cgHWHUsoKlREtptkWAv2lPSV6Tl/M=; b=MFtAle3Vpgl1RTGpS6uz3AeE1XVsxfWCLceAih/LvPSYsOgXa9xiwezxrV1El+it5T xxBwQxadr3ja3KlF7HAfycy0J57gk+hOa6ps1qKXs7s1DpFYAItmH3mE4ZF37vWKns3w M0FVNV0lVS3AVubLdRVgVb4MDyAv111Qt9lkheFH+erNI5wVH8iGmQrgLfqQ5xtl/K7L kludxTjJjkQv6JDTwP3wyg4Drz6GsXooFFiA0ud4A4YOHwmji4oxuaFSgveCSOjFa5nz 8G5IBUhiU00OMh5tJmMoxTbYFAU0+gLuo6xFc5s0OcK25e3ejMg21+UezcRtGR+mebDJ IXXQ== 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=abGbYtrPyREWN2cgHWHUsoKlREtptkWAv2lPSV6Tl/M=; b=jZVgnFw9tE9C9W7veNj7jichro5gehu3NYsaA3l1x849zkPnVOxJD+ao+1fitYSykZ ojp7ApVRMvpIHZzEtATw4HRaJK2F+G8xgOt+qRQ3lX+Z5wcpFVvZ013c6Gz3GJSNaUn4 P/Qn3NJcPjQ+GlzymJJnsYvU5LJYHahvPeaAlDL3n4P707LR6MG/FP0T3oEoWtrgGqOJ 4Ou1c5JJRqF0FU8X0/7tBP6fcx2yJrV6um4ow5ROi1MZDFod1FH3xV/QG4aZ4hYm1Yp4 gQsASyrK2zzwRk80ECGUzQq88rvFPd9a3MTtyJELB2iVNI2R4+NDJBNTwZwZRlPCNZhW UoxQ== X-Gm-Message-State: ABuFfohDyz47/10pQFypcJ1m94+miXsMw9WxHGbufhGvCVbR71gvglyH RgIK3djZGecNGuLmlHjSQKEGyMMpvvZJILxIKeY= X-Google-Smtp-Source: ACcGV632RiUmckiXjaj9Oy7pf66l2jksI93Mr5xaWERpVbwOV7+M/KF+YKL/8e1EM3Qa9V0rVw8fmIuSoVZVg0zOUd4= X-Received: by 2002:a24:89c3:: with SMTP id s186-v6mr521675itd.122.1538087445444; Thu, 27 Sep 2018 15:30:45 -0700 (PDT) MIME-Version: 1.0 References: <87tvmbv8hp.fsf@oldenburg.str.redhat.com> <5BAC7D6802000078001EC6D1@prv1-mh.provo.novell.com> <87pnwzuz8r.fsf@oldenburg.str.redhat.com> <20180927103539.GJ10209@port70.net> <874lebtdru.fsf@oldenburg.str.redhat.com> In-Reply-To: <874lebtdru.fsf@oldenburg.str.redhat.com> From: Cary Coutant Date: Mon, 01 Jan 2018 00:00:00 -0000 Message-ID: Subject: Re: RFC: Add SHT_GNU_PHDRS To: Florian Weimer Cc: nsz@port70.net, JBeulich@suse.com, "H.J. Lu" , Rich Felker , Binutils , gnu-gabi@sourceware.org Content-Type: text/plain; charset="UTF-8" X-IsSubscribed: yes X-SW-Source: 2018-q3/txt/msg00024.txt.bz2 > * Szabolcs Nagy: > > > without containing any sections, however elf says > > "An object file segment contains one or more sections". > > Interesting. This indeed suggests that a covering section for the > program header is needed, and a new section type for it makes sense. I would argue that "one or more" is careless wording. It goes on to say "... though this fact is transparent to the program header. Whether the file segment holds one or many sections also is immaterial to program loading." If you need a special section type just to ensure that the BFD linker will include the program headers in a loadable segment, that's a mere implementation detail, and doesn't need to be part of the gABI or psABI. -cary