This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
ELF phdrs in .debug files
- From: Roland McGrath <roland at redhat dot com>
- To: binutils at sources dot redhat dot com
- Cc: Alan Modra <amodra at bigpond dot net dot au>
- Date: Sat, 19 May 2007 12:10:51 -0700 (PDT)
- Subject: 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