This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: elf.c assign_file_positions_for_segments
- From: Mark Kettenis <mark dot kettenis at xs4all dot nl>
- To: amodra at bigpond dot net dot au
- Cc: binutils at sources dot redhat dot com, gdb at sources dot redhat dot com
- Date: Fri, 24 Sep 2004 08:35:51 +0200 (CEST)
- Subject: Re: elf.c assign_file_positions_for_segments
- References: <200409231551.i8NFpHkJ025812@juw15.nfra.nl> <20040923234221.GE30257@bubble.modra.org> <20040924001757.GF30257@bubble.modra.org> <20040924030920.GG30257@bubble.modra.org>
Date: Fri, 24 Sep 2004 12:39:20 +0930
From: Alan Modra <amodra@bigpond.net.au>
On Fri, Sep 24, 2004 at 09:47:57AM +0930, Alan Modra wrote:
> If we really don't need the SEC_HAS_CONTENTS test, then I'll take it out
> and gdb gcore should be OK, otherwise I might ask you to clear
> SEC_HAS_CONTENTS in gdb.
I think it likely that the SEC_HAS_CONTENTS test is just a hack to work
around another problem. I'm applying the following to go back to the
old behaviour.
Thanks.
You might like to clear SEC_HAS_CONTENTS in gdb too, as it will result
in needless file space being allocated.
I'll investigate this. Can't say I completely understand what's
happening here, but I can always bother Michael Snyder with it, since
he wrote the initial gcore code.
Cheers,
Mark