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
On Thu, Jan 03, 2008 at 11:00:06AM -0500, Mike Frysinger wrote:
> a way for objcopy to modify random DT tags in ELFs would be perfect i would
> think. objcopy --change-dt <idx> <value>. then you'd figure out the index
> of the RPATH tag (let's say it's the 5th tag) and do something like:
> for elf in ${list-of-kde-elfs-to-screw-with} ; do
> objcopy --change-dt 5 "/some/random/craziness:/insane" $elf
FYI, this is doable, but complex. See the code in prelink which
allocates space for additional strings. It would be even harder in
the framework of BFD.
--
Daniel Jacobowitz
CodeSourcery