From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 65591 invoked by alias); 18 Apr 2016 09:44:03 -0000 Mailing-List: contact binutils-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: binutils-owner@sourceware.org Received: (qmail 65561 invoked by uid 89); 18 Apr 2016 09:44:02 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.2 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_NONE,RP_MATCHES_RCVD,SPF_PASS autolearn=ham version=3.3.2 spammy=Hx-languages-length:543 X-HELO: mailapp01.imgtec.com Received: from mailapp01.imgtec.com (HELO mailapp01.imgtec.com) (195.59.15.196) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Mon, 18 Apr 2016 09:44:00 +0000 Received: from HHMAIL01.hh.imgtec.org (unknown [10.100.10.19]) by Websense Email with ESMTPS id 8764138A3225C; Mon, 18 Apr 2016 10:43:55 +0100 (IST) Received: from hhmail02.hh.imgtec.org ([fe80::5400:d33e:81a4:f775]) by HHMAIL01.hh.imgtec.org ([fe80::710b:f219:72bc:e0b3%26]) with mapi id 14.03.0266.001; Mon, 18 Apr 2016 10:43:58 +0100 From: Matthew Fortune To: Alan Modra CC: "binutils@sourceware.org" , "Anibal Monsalve Salazar" Subject: RE: [RFD] How legal is it to delete dynamic tags? Date: Mon, 18 Apr 2016 09:44:00 -0000 Message-ID: <6D39441BF12EF246A7ABCE6654B023537E3D91C5@hhmail02.hh.imgtec.org> References: <6D39441BF12EF246A7ABCE6654B023537E3D685D@hhmail02.hh.imgtec.org> <20160415222520.GD15088@bubble.grove.modra.org> In-Reply-To: <20160415222520.GD15088@bubble.grove.modra.org> Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-IsSubscribed: yes X-SW-Source: 2016-04/txt/msg00264.txt.bz2 Alan Modra writes: > On Fri, Apr 15, 2016 at 03:08:41PM +0000, Matthew Fortune wrote: > > Firstly, to what extent is it OK to just delete a dynamic tag rather > > than set it to DT_NULL? >=20 > DT_NULL marks the end of the dynamic tags array. Setting a tag to > DT_NULL is not an option (except when the following tag is DT_NULL). > You'll break ld.so if you do that. Thanks. I had some vague memory that DT_NULL couldn't be used arbitrarily but couldn't think why. Matthew