public inbox for binutils@sourceware.org
 help / color / mirror / Atom feed
* [RFD] How legal is it to delete dynamic tags?
@ 2016-04-15 15:08 Matthew Fortune
  2016-04-15 22:25 ` Alan Modra
  2016-04-15 23:13 ` Nathaniel Smith
  0 siblings, 2 replies; 6+ messages in thread
From: Matthew Fortune @ 2016-04-15 15:08 UTC (permalink / raw)
  To: binutils; +Cc: Anibal Monsalve Salazar

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.

https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=818909#43

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
wrong address.

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.

Matthew

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2016-04-18  9:45 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-04-15 15:08 [RFD] How legal is it to delete dynamic tags? Matthew Fortune
2016-04-15 22:25 ` Alan Modra
2016-04-18  9:44   ` Matthew Fortune
2016-04-15 23:13 ` Nathaniel Smith
2016-04-15 23:17   ` Nathaniel Smith
2016-04-18  9:45     ` Matthew Fortune

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).