mmix-mmo set SEC_DATA for .data section
[deliverable/binutils-gdb.git] / bfd / mmo.c
index ca116aa42f003d4fc29a45863189c4980e2349de..073c37c0acdcb6916e53ea46ed0425f72a1f0fdf 100644 (file)
--- a/bfd/mmo.c
+++ b/bfd/mmo.c
@@ -579,7 +579,7 @@ mmo_mkobject (bfd *abfd)
 
       /* All fields are zero-initialized, so we don't have to explicitly
         initialize most.  */
-      tdata_type *tdata = (tdata_type *) bfd_zmalloc (sizeof (tdata_type));
+      tdata_type *tdata = (tdata_type *) bfd_zalloc (abfd, sizeof (tdata_type));
       if (tdata == NULL)
        return FALSE;
 
@@ -2074,7 +2074,7 @@ mmo_scan (bfd *abfd)
   if (sec != NULL
       && (bfd_section_flags (sec) & SEC_HAS_CONTENTS)
       && !bfd_set_section_flags (sec, (bfd_section_flags (sec)
-                                      | SEC_ALLOC | SEC_LOAD)))
+                                      | SEC_ALLOC | SEC_LOAD | SEC_DATA)))
     error = TRUE;
 
   /* Free whatever resources we took.  */
This page took 0.033995 seconds and 4 git commands to generate.