This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: RPATH/RUNPATH issue, equivalent to -headerpad on OSX


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]