From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from albireo.enyo.de (albireo.enyo.de [37.24.231.21]) by server2.sourceware.org (Postfix) with ESMTPS id C989839490B0 for ; Mon, 9 Mar 2020 13:31:03 +0000 (GMT) Received: from [172.17.203.2] (helo=deneb.enyo.de) by albireo.enyo.de with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) id 1jBIUo-0007F5-3L; Mon, 09 Mar 2020 13:31:02 +0000 Received: from fw by deneb.enyo.de with local (Exim 4.92) (envelope-from ) id 1jBITF-0006sh-Fy; Mon, 09 Mar 2020 14:29:25 +0100 From: Florian Weimer To: Kaylee Blake Cc: binutils@sourceware.org Subject: Re: RFC: [PATCH] ELF: Don't require section header on ELF objects References: <20200308175947.GA911529@gmail.com> <87y2sac5er.fsf@mid.deneb.enyo.de> <79bc289f-9202-9aff-61c3-92c7190d2f7d@gmail.com> <875zfdad9j.fsf@mid.deneb.enyo.de> <36183da0-ed0c-13bf-2cb3-bd004e8d46f9@gmail.com> <87y2s98y94.fsf@mid.deneb.enyo.de> Date: Mon, 09 Mar 2020 14:29:25 +0100 In-Reply-To: (Kaylee Blake's message of "Mon, 9 Mar 2020 23:58:59 +1030") Message-ID: <87tv2x8xmy.fsf@mid.deneb.enyo.de> MIME-Version: 1.0 Content-Type: text/plain X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00, 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 13:31:04 -0000 * Kaylee Blake: >> I think that's conceptually the wrong thing to do for ELF, sorry. If >> there is no section header, the object should be unlinkable. The >> linker should not use the dynamic segment to locate the symbol >> information, only the dynamic section (in case the link ABI and >> run-time ABI are different). > > I'm confused by your comment about link and run-time ABIs differing; > surely if the ABI at runtime differs from the ABI at link time, you are > just going to crash at runtime? No, the typical application are fewer symbols in the DSO at link time than at load time, for example for linking against an older version of glibc than is installed on the system.