RPATH/RUNPATH issue, equivalent to -headerpad on OSX
Alan Modra
amodra@bigpond.net.au
Fri Aug 8 01:21:00 GMT 2008
On Thu, Aug 07, 2008 at 11:47:55PM +0100, Gavin Beatty wrote:
> I'm trying to ready a patch for submission about this issue. I would
> add an -rpath-pad option taking the number of bytes to pad the
> RPATH/RUNPATH.
Make things easy for yourself and do without this option entirely. If
you are padding rpath, presumably it is so you can later change rpath.
So instead of a new option to pad with nulls, pass a dummy large
string to --rpath, then use your new tool to change rpath.
You should be aware that mucking with .dynstr is dangerous. Strings
are merged, so a symbol or tag that just happens to match the tail of
your rpath value will point at the tail..
--
Alan Modra
Australia Development Lab, IBM
More information about the Binutils
mailing list