* dwarf2.c: Revert last change.
authorAlan Modra <amodra@gmail.com>
Thu, 7 Nov 2002 22:19:59 +0000 (22:19 +0000)
committerAlan Modra <amodra@gmail.com>
Thu, 7 Nov 2002 22:19:59 +0000 (22:19 +0000)
bfd/ChangeLog
bfd/dwarf2.c

index 5acc0c619db518b8d88325422d8c0adaaa0a0339..37832d95719fdf31e8d42125a2c59d98b5079787 100644 (file)
@@ -1,3 +1,7 @@
+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,
index 1d1e343a17e7c23f1e069a1e4d7bdfa7a72657eb..063982662bc7582bf1379e37cab654c6e06741d8 100644 (file)
@@ -389,8 +389,8 @@ read_indirect_string (unit, buf, bytes_read_ptr)
       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;
     }
 
@@ -550,8 +550,8 @@ read_abbrevs (abfd, offset, stash)
       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;
     }
 
@@ -1023,8 +1023,8 @@ decode_line_info (unit, stash)
       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
@@ -1939,8 +1939,8 @@ _bfd_dwarf2_find_nearest_line (abfd, section, symbols, offset,
 
          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;