Add support fpr MAXQ processor
[deliverable/binutils-gdb.git] / bfd / dwarf1.c
index 6c3f413907943663aec508c3f9f295a7ae55a29a..6fa74fc4a96b8c36a628e236a5c356dd3ede387f 100644 (file)
@@ -285,14 +285,14 @@ parse_line_table (stash, aUnit)
       if (! msec)
        return FALSE;
 
-      size = bfd_get_section_size (msec);
+      size = msec->rawsize ? msec->rawsize : msec->size;
       stash->line_section = (char *) bfd_alloc (stash->abfd, size);
 
       if (! stash->line_section)
        return FALSE;
 
       if (! bfd_get_section_contents (stash->abfd, msec, stash->line_section,
-                                     (bfd_vma) 0, size))
+                                     0, size))
        {
          stash->line_section = 0;
          return FALSE;
@@ -502,14 +502,14 @@ _bfd_dwarf1_find_nearest_line (abfd, section, symbols, offset,
          return FALSE;
        }
 
-      size = bfd_get_section_size (msec);
+      size = msec->rawsize ? msec->rawsize : msec->size;
       stash->debug_section = (char *) bfd_alloc (abfd, size);
 
       if (! stash->debug_section)
        return FALSE;
 
       if (! bfd_get_section_contents (abfd, msec, stash->debug_section,
-                                     (bfd_vma) 0, size))
+                                     0, size))
        {
          stash->debug_section = 0;
          return FALSE;
This page took 0.024243 seconds and 4 git commands to generate.