This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: [drow@mvista.com: Re: _bfd_dwarf2_find_nearest_line returns wrong filename]
- From: Alan Modra <amodra at bigpond dot net dot au>
- To: binutils at sources dot redhat dot com
- Date: Wed, 26 Mar 2003 23:46:48 +1030
- Subject: Re: [drow@mvista.com: Re: _bfd_dwarf2_find_nearest_line returns wrong filename]
- References: <20030225045705.GA2837@nevyn.them.org> <20030325234022.GA13438@nevyn.them.org>
On Tue, Mar 25, 2003 at 06:40:22PM -0500, Daniel Jacobowitz wrote:
> Ping?
Doesn't time fly?
> > 2003-02-04 Andreas Schwab <schwab at suse dot de>
> > Daniel Jacobowitz <drow at mvista dot com>
> >
> > * simple.c (bfd_simple_get_relocated_section_contents): Add
> > parameter symbol_table. Optionally use it instead of the symbol
> > table from the bfd. Save and restore output offsets and output
> > sections around bfd_get_relocated_section_contents. Fix a memory
> > leak.
> > (simple_save_output_info, simple_restore_output_info): New
> > functions.
> > * bfd-in2.h: Regenerate.
> > * dwarf2.c (read_abbrevs): Use
> > bfd_simple_get_relocated_section_contents instead of
> > bfd_get_section_contents.
> > (decode_line_info): Likewise.
> > (_bfd_dwarf2_find_nearest_line): Likewise. Don't call
> > find_rela_addend.
> > (find_rela_addend): Remove.
> > * elfxx-ia64.c (elfNN_ia64_reloc): Weaken sanity check for
> > debugging sections.
> > (elfNN_ia64_hash_table_create): Create the hash table with malloc,
> > not bfd_zalloc.
OK.
> > Index: bfd/elfxx-ia64.c
> > - ret = bfd_zalloc (abfd, (bfd_size_type) sizeof (*ret));
> > + ret = bfd_malloc ((bfd_size_type) sizeof (*ret));
> > if (!ret)
> > return 0;
> > + memset (ret, 0, sizeof (*ret));
> > +
Use bfd_zmalloc
--
Alan Modra
IBM OzLabs - Linux Technology Centre