section named _INIT. Don't set STYP_TEXT unless SEC_CODE is set.
(ecoff_styp_to_sec_flags): Treat a STYP_MIPS_INIT section like
a STYP_TEXT section.
+Thu Jun 10 11:48:28 1993 Ian Lance Taylor (ian@cygnus.com)
+
+ * coff-mips.c (ecoff_sec_to_styp_flags): Use STYP_MIPS_INIT for
+ section named _INIT. Don't set STYP_TEXT unless SEC_CODE is set.
+ (ecoff_styp_to_sec_flags): Treat a STYP_MIPS_INIT section like
+ a STYP_TEXT section.
+
Wed Jun 9 16:48:13 1993 david d `zoo' zuhn (zoo at cirdan.cygnus.com)
* Makefile.in (install, headers): don't put comments after a tab
Wed Jun 9 16:48:13 1993 david d `zoo' zuhn (zoo at cirdan.cygnus.com)
* Makefile.in (install, headers): don't put comments after a tab
styp = STYP_BSS;
else if (strcmp (name, _SBSS) == 0)
styp = STYP_SBSS;
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)
else if (flags & SEC_CODE)
styp = STYP_TEXT;
else if (flags & SEC_DATA)
else if (flags & SEC_READONLY)
styp = STYP_RDATA;
else if (flags & SEC_LOAD)
else if (flags & SEC_READONLY)
styp = STYP_RDATA;
else if (flags & SEC_LOAD)
/* For 386 COFF, at least, an unloadable text or data section is
actually a shared library section. */
/* 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;
{
if (sec_flags & SEC_NEVER_LOAD)
sec_flags |= SEC_CODE | SEC_SHARED_LIBRARY;