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: objcopy --only-keep-debug and ELF program headers


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


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