(read_indirect_string): Fix apparent typo, check dwarf_str_buffer allocation,

not dwarf_abbrev_buffer.
This commit is contained in:
Nick Clifton 2005-03-17 08:24:28 +00:00
parent 05f83022ad
commit 36868d45f8
2 changed files with 7 additions and 1 deletions

View File

@ -1,3 +1,9 @@
2005-03-16 Fred Fish <fnf@specifixinc.com>
PR binutils/790
* dwarf2.c (read_indirect_string): Fix apparent typo, check
dwarf_str_buffer allocation, not dwarf_abbrev_buffer.
2005-03-16 H.J. Lu <hongjiu.lu@intel.com>
* elflink.c (elf_mark_used_section): New.

View File

@ -301,7 +301,7 @@ read_indirect_string (struct comp_unit* unit,
sz = msec->rawsize ? msec->rawsize : msec->size;
stash->dwarf_str_size = sz;
stash->dwarf_str_buffer = bfd_alloc (abfd, sz);
if (! stash->dwarf_abbrev_buffer)
if (! stash->dwarf_str_buffer)
return NULL;
if (! bfd_get_section_contents (abfd, msec, stash->dwarf_str_buffer,