Browse Source

Fix SectionFlags array having too few elements.
Set the text section flag for .deleted.


git-svn-id: file:///var/svn/tigccpp/trunk/tigcc/ld-tigcc@230 9552661e-59e3-4036-b4f2-dbe53926924f

kevinkofler 19 years ago
parent
commit
a2418938ce
1 changed files with 2 additions and 2 deletions
  1. 2 2
      export/exp_dbg.c

+ 2 - 2
export/exp_dbg.c

@@ -223,8 +223,8 @@ static void WriteSectionHeader (const SECTION *Section, void *UserData)
 	                   ".debug_p"/*ubnames*/, ".debug_r"/*anges*/,
 	                   ".debug_s"/*tr*/, ".eh_fram"/*e*/};
 	static const I4 SectionFlags[MAX_NAMED_SECTION] =
-	                {COFF_SECTION_TEXT, COFF_SECTION_DATA, COFF_SECTION_BSS, 0,
-	                 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0};
+	                {COFF_SECTION_TEXT, COFF_SECTION_DATA, COFF_SECTION_BSS,
+	                 COFF_SECTION_TEXT, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0};
 	SIZE Size = Section->Size;
 	const RELOC *Reloc;
 	COUNT RelocCount = 0;