This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: RPATH/RUNPATH issue, equivalent to -headerpad on OSX
- From: Alan Modra <amodra at bigpond dot net dot au>
- To: Gavin Beatty <gavinbeatty at gmail dot com>
- Cc: binutils at sourceware dot org
- Date: Fri, 8 Aug 2008 10:51:14 +0930
- Subject: Re: RPATH/RUNPATH issue, equivalent to -headerpad on OSX
- References: <f6d77fed0808071547t52255427q70eb524fe66566a@mail.gmail.com>
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