(int64e_type): Fix definition.
[deliverable/binutils-gdb.git] / bfd / coff-mips.c
index 6012b14783c75123d63494d17d454f154302c8b4..45175580c38b372e3131dab45d2b49a11cda5fdb 100644 (file)
@@ -526,6 +526,8 @@ ecoff_sec_to_styp_flags (name, flags)
     styp = STYP_BSS;
   else if (strcmp (name, _SBSS) == 0)
     styp = STYP_SBSS;
+  else if (strcmp (name, _INIT) == 0)
+    styp = STYP_MIPS_INIT;
   else if (flags & SEC_CODE) 
     styp = STYP_TEXT;
   else if (flags & SEC_DATA) 
@@ -533,7 +535,7 @@ ecoff_sec_to_styp_flags (name, flags)
   else if (flags & SEC_READONLY)
     styp = STYP_RDATA;
   else if (flags & SEC_LOAD)
-    styp = STYP_TEXT;
+    styp = STYP_REG;
   else
     styp = STYP_BSS;
 
@@ -559,7 +561,8 @@ ecoff_styp_to_sec_flags (abfd, hdr)
 
   /* For 386 COFF, at least, an unloadable text or data section is
      actually a shared library section.  */
-  if (styp_flags & STYP_TEXT)
+  if ((styp_flags & STYP_TEXT)
+      || (stype_FLAGS & STYP_MIPS_INIT))
     {
       if (sec_flags & SEC_NEVER_LOAD)
        sec_flags |= SEC_CODE | SEC_SHARED_LIBRARY;
This page took 0.022995 seconds and 4 git commands to generate.