1) A better fix for Bug 2979 - [GCCE] elf2e32 --dump generates RVCT assembly.
authormikek
Fri, 02 Jul 2010 11:11:13 +0100
changeset 22 f76056b903a8
parent 21 cdfb74fd77ed
child 23 0a67eddbe320
1) A better fix for Bug 2979 - [GCCE] elf2e32 --dump generates RVCT assembly. 2) A fix for Bug 3117 - [GCCE] Missing symbols in linkage of template_ekern.exe. Same fix for both bugs, though they are no duplicates.
e32tools/elf2e32/source/filedump.cpp
--- a/e32tools/elf2e32/source/filedump.cpp	Mon Jun 21 15:25:11 2010 +0100
+++ b/e32tools/elf2e32/source/filedump.cpp	Fri Jul 02 11:11:13 2010 +0100
@@ -215,39 +215,12 @@
 				aItr++;
 				continue;
 			}
-
-			fputs("\t.extern ",fptr);
+			fputs("\t.common ",fptr);
 			fputs(aSym->SymbolName(),fptr);
-			fputs("\n",fptr);
+			fputs(" 4\n",fptr);
 			aItr++;
 		}
 
-        // Create a directive section that instructs the linker to make all listed
-        // symbols visible.
-
-        fputs("\t.text\n\n",fptr);
-
-        fputs("\t.ascii \"#<SYMEDIT>#\\n\"\n", fptr);
-
-		aItr = aSymList->begin();
-		while (aItr != last)
-		{
-			aSym = *aItr;
-
-			if ( aSym->Absent() )
-			{
-				aItr++;
-				continue;
-			}
-
-            // Example:
-            //  DCB "EXPORT __ARM_ll_mlass\n"
-			fputs("\t.ascii \"EXPORT ",fptr);
-			fputs(aSym->SymbolName(),fptr);
-			fputs("\\n\"\n", fptr);
-
-			aItr++;
-		}
 		fclose(fptr);
 	}
 	return 0;