This is the mail archive of the
mailing list for the binutils project.
Re: [PATCH] Add --only-keep-debug-and-symbols option to objcopy
On Fri, Jan 09, 2004 at 02:06:36PM -0500, Daniel Jacobowitz wrote:
> > 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?
The *.debug files created with --only-keep-debug are (slightly) smaller,
on the other side you have to use just strip -g on the original file,
I have no problems with just changing the behaviour of --only-keep-debug
but would like to hear from others too.