ELF phdrs in .debug files

Roland McGrath roland@redhat.com
Tue May 22 17:58:00 GMT 2007


> I agree with Alan here.  I think that recomputing the program headers is 
> a good feature, and a necessary one in situations where the output file 
> is significantly different from the input one.

I have no special opinions about objcopy's behavior in cases other than
strip-to-debug.

> What we appear to have with --only-keep-debug is a special case where we 
> want to preserve the program headers of the input file, even though 
> strictly speaking they no longer apply to the output file.  So it sounds 
> like we need to add code to the BFD library to preserve (as best we can) 
> the program headers in this particular circumstance.  Do you agree ?

That sounds fine to me.


Thanks,
Roland



More information about the Binutils mailing list