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 Thursday 03 January 2008, Daniel Jacobowitz wrote:
> 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.

i dont imagine it would be trivial, but better to have it done right in one 
place than have a bunch of little apps all trying to get it right but failing 
pretty badly on the edge cases
-mike

Attachment: signature.asc
Description: This is a digitally signed message part.


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