From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mx2.suse.de (mx2.suse.de [195.135.220.15]) by sourceware.org (Postfix) with ESMTPS id EA4433949F28 for ; Mon, 9 Mar 2020 14:34:13 +0000 (GMT) X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.220.254]) by mx2.suse.de (Postfix) with ESMTP id DCED6B03D; Mon, 9 Mar 2020 14:34:12 +0000 (UTC) Date: Mon, 9 Mar 2020 14:34:12 +0000 (UTC) From: Michael Matz To: Alan Modra cc: Kaylee Blake , binutils@sourceware.org Subject: Re: RFC: [PATCH] ELF: Don't require section header on ELF objects In-Reply-To: <20200309134427.GO5384@bubble.grove.modra.org> Message-ID: References: <20200308175947.GA911529@gmail.com> <87y2sac5er.fsf@mid.deneb.enyo.de> <79bc289f-9202-9aff-61c3-92c7190d2f7d@gmail.com> <20200309134427.GO5384@bubble.grove.modra.org> User-Agent: Alpine 2.21 (LSU 202 2017-01-01) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00, RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL, SPF_HELO_NONE, SPF_PASS autolearn=ham autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on server2.sourceware.org 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: Mon, 09 Mar 2020 14:34:14 -0000 Hello, On Tue, 10 Mar 2020, Alan Modra wrote: > On Mon, Mar 09, 2020 at 11:24:44PM +1030, Kaylee Blake wrote: > > On 9/3/20 6:43 pm, Florian Weimer wrote: > > > In my opinion, it should NOT be possible to link against objects > > > without section headers. Lack of section headers clearly marks the > > > object as a run-time only object. This is useful if you want to > > > prevent developers to create DT_NEEDED dependencies on internal > > > libraries, for example. > > I agree. Me as well, as much as I like the cute hack of reconstructing the linking view from only the executable view. (We probably could make everything work with some additional constraints that give us some guarantees, but I don't think that's in the spirit of ELF). Ciao, Michael.