Emit 8 NULs for target section name instead of dumping core when the target
[deliverable/binutils-gdb.git] / gdb / xcoffread.c
index 53e546958f878dbe04db5ea1900a498574f7a8e5..ed55c74d27708236dbfd0a7be7bfb0edcdfbf8df 100644 (file)
@@ -274,7 +274,7 @@ find_targ_sec (bfd *abfd, asection *sect, PTR obj)
       else if (bfd_get_section_flags (abfd, sect) & SEC_LOAD)
        *args->resultp = SECT_OFF_DATA (objfile);
       else
-       *args->resultp = SECT_OFF_BSS (objfile);
+       *args->resultp = sect->index;
       *args->bfd_sect = sect;
     }
 }
@@ -2744,7 +2744,7 @@ xcoff_symfile_offsets (struct objfile *objfile, struct section_addr_info *addrs)
         sensibly), so just ignore the addr parameter and use 0.
         rs6000-nat.c will set the correct section offsets via
         objfile_relocate.  */
-       ANOFFSET (objfile->section_offsets, i) = 0;
+       (objfile->section_offsets)->offsets[i] = 0;
     }
 }
 
This page took 0.023896 seconds and 4 git commands to generate.