This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
RFC: Rewrite copy_private_bfd_data in elf.c
- From: "H. J. Lu" <hjl at lucon dot org>
- To: binutils at sources dot redhat dot com
- Cc: jakub at redhat dot com
- Date: Thu, 2 Feb 2006 11:55:16 -0800
- Subject: RFC: Rewrite copy_private_bfd_data in elf.c
Hi,
I'd like to clean up copy_private_bfd_data in elf.c. It is supposed
to copy ELF program header. But it checks p_paddr in ELF progam header,
which isn't specified by ELF specification at all and messs around
progam header. I'd like to rewrite copy_private_bfd_data to handle
copying ELF program header properly. It will
1. Copy the entire ELF program header if none of the sections
referenced by program header is removed. It won't change the order
of segments nor merge them.
2. It will adjust ELF program header if any of the sections referenced
by program header is removed. It won't change the order of segments nor
merge them. It will only remove a segment if all sections it covers
are removed.
Does anyone have any comments?
Jakub, you are the last person who made major changes to it:
http://sourceware.org/ml/binutils/2002-11/msg00783.html
Do you have any comments?
Thanks.
H.J.