This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: PATCH: Preserve e_flags.
- From: Alan Modra <amodra at bigpond dot net dot au>
- To: "H . J . Lu" <hjl at lucon dot org>
- Cc: binutils at sourceware dot cygnus dot com
- Date: Tue, 18 Dec 2001 18:41:31 +1030
- Subject: Re: PATCH: Preserve e_flags.
- References: <20011211155320.A810@ep09.kernel.pl> <20011215101135.A15855@lucon.org> <20011215162017.A21090@lucon.org>
On Sat, Dec 15, 2001 at 04:20:17PM -0800, H . J . Lu wrote:
> On Sat, Dec 15, 2001 at 10:11:35AM -0800, H . J . Lu wrote:
> > On Tue, Dec 11, 2001 at 03:53:20PM +0100, Michal Moskal wrote:
> > >
> > > And now the problem is that objcopy (and strip), does not copy e_flags
> > > from one elf file to another.
>
> Here is a patch. Shouldn't we preserve e_flags?
I can't think of a reason not to. Your patch needs to go one step
further, and remove/modify various back-end versions of this function
so that _bfd_elf_copy_private_bfd_data isn't duplicated needlessly.
Alan