This is the mail archive of the
mailing list for the binutils project.
[RFD] How legal is it to delete dynamic tags?
- From: Matthew Fortune <Matthew dot Fortune at imgtec dot com>
- To: "binutils at sourceware dot org" <binutils at sourceware dot org>
- Cc: Anibal Monsalve Salazar <Anibal dot MonsalveSalazar at imgtec dot com>
- Date: Fri, 15 Apr 2016 15:08:41 +0000
- Subject: [RFD] How legal is it to delete dynamic tags?
- Authentication-results: sourceware.org; auth=none
I have a bug report from Debian showing that the DT_MIPS_RLD_MAP_REL
tag (introduced on MIPS to support shared library debug with PIE)
can be corrupted by a program called chrpath.
chrpath is designed to alter or remove DT_RPATH entries. Removal is
a problem when such an entry precedes DT_MIPS_RLD_MAP_REL as the
relative offset stored in DT_MIPS_RLD_MAP_REL then points to the
Firstly, to what extent is it OK to just delete a dynamic tag rather
than set it to DT_NULL?
Secondly was it a bad decision to create a slot-relative dynamic
tag? I.e. If I were to fix chrpath to know that DT_MIPS_RLD_MAP_REL
needs updating... are there likely to be more utilities out there
that fiddle with dynamic tags in this way?
Thanks for any insight you can offer.