+2002-11-08 Alan Modra <amodra@bigpond.net.au>
+
+ * dwarf2.c: Revert last change.
+
2002-11-07 Michal Ludvig <mludvig@suse.cz>
* dwarf2.c (read_indirect_string, read_abbrevs, decode_line_info,
if (! stash->dwarf_abbrev_buffer)
return NULL;
- if (! bfd_simple_get_relocated_section_contents
- (abfd, msec, stash->dwarf_str_buffer))
+ if (! bfd_get_section_contents (abfd, msec, stash->dwarf_str_buffer,
+ (bfd_vma) 0, msec->_raw_size))
return NULL;
}
if (! stash->dwarf_abbrev_buffer)
return 0;
- if (! bfd_simple_get_relocated_section_contents
- (abfd, msec, stash->dwarf_abbrev_buffer))
+ if (! bfd_get_section_contents (abfd, msec, stash->dwarf_abbrev_buffer,
+ (bfd_vma) 0, msec->_raw_size))
return 0;
}
if (! stash->dwarf_line_buffer)
return 0;
- if (! bfd_simple_get_relocated_section_contents
- (abfd, msec, stash->dwarf_line_buffer))
+ if (! bfd_get_section_contents (abfd, msec, stash->dwarf_line_buffer,
+ (bfd_vma) 0, msec->_raw_size))
return 0;
/* FIXME: We ought to apply the relocs against this section before
start = stash->info_ptr_end - stash->info_ptr;
- if (! bfd_simple_get_relocated_section_contents
- (abfd, msec, stash->info_ptr + start))
+ if (! bfd_get_section_contents (abfd, msec, stash->info_ptr + start,
+ (bfd_vma) 0, size))
continue;
stash->info_ptr_end = stash->info_ptr + start + size;