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]

ELF phdrs in .debug files


I am concerned by this change:

	2007-05-11  Alan Modra  <amodra@bigpond.net.au>

		PR 4479
		* objcopy.c (copy_object): Don't copy ELF program headers for
		--only-keep-debug.

I think this is broken.  The phdrs in the .debug file are used by consumers
to deduce the difference between addresses in the .debug file and those in
the main stripped file.  These will differ when prelink has changed the
stripped file's phdrs after the .debug file was stripped off.

I don't know if gdb relies on this, but other consumers do.


Thanks,
Roland


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