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: strip & nop relocs


On Fri, Nov 14, 2008 at 08:11:06AM -0500, Daniel Jacobowitz wrote:
> On Fri, Nov 14, 2008 at 11:33:04PM +1030, Alan Modra wrote:
> > No, I just wanted to understand how this situation came about.  I
> > think the real bug is in strip.  We have code there to remove relocs,
> > but only for STRIP_ALL.  Wouldn't it be better to remove any reloc
> > against a symbol in a stripped section?
> 
> Do you think that's useful for (non-weak symbols in) ALLOC target
> sections?  I'd guess people will just shoot themselves in the foot
> with it.

Yes, I do think it might be useful.  If you have a need to strip
some set of sections from an object, then it's silly for objcopy/strip
in so doing to create an object that triggers BFD errors during
linking.  I'm not worried that this might give users a way to shoot
themselves in the foot with objcopy.  It certainly won't be the only
way objcopy can destroy an object file!

-- 
Alan Modra
Australia Development Lab, IBM


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