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: [PATCH] don't strip symbols involved in relocations


On Mon, Apr 23, 2007 at 08:07:52AM -0700, Nathan Froyd wrote:
> The attached patch adds a safety check when stripping a symbol specified
> on the command line: if the symbol is involved in a relocation, it
> should not be stripped.
> 
> Tested on i586-none-vxworks.
> 
> OK?
> 
> -Nathan
> 
> binutils/
> 2007-04-23  Nathan Froyd  <froydnj@codesourcery.com>
> 	    Phil Edwards  <phil@codesourcery.com>
> 
> 	* objcopy.c (filter_symbols): Explicitly stripping a symbol
> 	used in relocations is an error.
> 
> binutils/testsuite/
> 2007-04-23  Nathan Froyd  <froydnj@codesourcery.com>
> 	    Phil Edwards  <phil@codesourcery.com>
> 
> 	* binutils-all/objcopy.exp: Add test for stripping a symbol
> 	used in a relocation.


There is no entry for

binutils/testsuite/binutils-all/needed-reloc.s

Does it have to be vsworks specific?


H.J.


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