RPATH/RUNPATH issue, equivalent to -headerpad on OSX

Daniel Jacobowitz drow@false.org
Fri Jan 4 09:47:00 GMT 2008


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



More information about the Binutils mailing list