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: partial linking that resolves relocations


> There might be a work-around, however.  Run "ld -r", then run
> "objcopy --strip-symbol=foo".  If objcopy interprets this favorably,
> then objcopy must resolve the relocations that depend on 'foo'.

This succeeds, and works in some cases: "objcopy --localize-symbo=foo".
Someone who is really desperate might take the output of "ld -r", then
change the string name of 'foo' to (gensym), such as by over-writing
the last two characters with "non-printable" bytes.

-- 


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