objcopy --only-keep-debug and ELF program headers

Nick Clifton nickc@redhat.com
Fri May 11 11:06:00 GMT 2007


Hi Alan,

> This removes program headers entirely from ELF debug info files.
> I can't see that they're needed, and existing comments in objcopy.c
> tend to reinforce this.  Furthermore, a quick hello world test shows
> gdb is happy.  However, I'll wait for Nick to give the OK on this one
> since I haven't played much with separate debug info.
> 
> 	PR 4479
> 	* objcopy.c (copy_object): Don't copy ELF program headers for
> 	--only-keep-debug.

You are right, the program headers are not needed.  Please check in the 
patch with my blessing.

Cheers
   Nick



More information about the Binutils mailing list