This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: Fix PR ld/7028, valgrind complaint for ld-elf/header
- From: Alan Modra <amodra at bigpond dot net dot au>
- To: Hans-Peter Nilsson <hans-peter dot nilsson at axis dot com>
- Cc: binutils at sourceware dot org
- Date: Thu, 13 Nov 2008 13:20:43 +1030
- Subject: Re: Fix PR ld/7028, valgrind complaint for ld-elf/header
- References: <200811130228.mAD2SLeS011076@ignucius.se.axis.com>
On Thu, Nov 13, 2008 at 03:28:21AM +0100, Hans-Peter Nilsson wrote:
> PR ld/7028
> * elf.c (assign_file_positions_for_load_sections): Allocate phrds
> with bfd_zalloc2 instead of bfd_alloc2. For the amount, use
> the possibly-preset header-size, not the computed one.
OK.
--
Alan Modra
Australia Development Lab, IBM