[PATCH] Add --only-keep-debug-and-symbols option to objcopy

Daniel Jacobowitz drow@mvista.com
Fri Jan 9 19:07:00 GMT 2004


On Fri, Jan 09, 2004 at 02:37:31PM +0100, Jakub Jelinek wrote:
> Hi!
> 
> Following patch on top of Nick's patch from yesterday adds
> --only-keep-debug-and-symbols option which does something similar
> to eu-strip -f foo.debug foo with the foo.debug file.
> Particularly, it keeps debugging sections (like --only-keep-debug),
> but also .symtab/.strtab.  Allocated sections are changed into
> SHT_NOBITS sections, so that the symbols don't have to be converted
> into SHN_ABS symbols.
> Ok to commit?

Is there any advantage to using --only-keep-debug after this?  i.e.
should we just change the behaviour of --only-keep-debug instead?

-- 
Daniel Jacobowitz
MontaVista Software                         Debian GNU/Linux Developer



More information about the Binutils mailing list