Index: runtime/vm/elfgen.h |
=================================================================== |
--- runtime/vm/elfgen.h (revision 17318) |
+++ runtime/vm/elfgen.h (working copy) |
@@ -342,7 +342,9 @@ |
#endif |
WriteWord(symtab, pc); // st_value |
WriteWord(symtab, size); // st_size |
-#if defined(TARGET_ARCH_IA32) || defined(TARGET_ARCH_ARM) |
+#if defined(TARGET_ARCH_IA32) || \ |
Ivan Posva
2013/01/18 23:57:39
Should this be ARCH_IS_32_BIT and ARCH_IS_64_BIT,
regis
2013/01/19 00:17:34
Good point. I'll fix that in a later cl with other
|
+ defined(TARGET_ARCH_ARM) || \ |
+ defined(TARGET_ARCH_MIPS) |
// st_info + (st_other<<8) |
WriteShort(symtab, (kSTB_EXPORTED << 4) + kSTT_FUNC); |
WriteShort(symtab, kText); // st_shndx |
@@ -383,7 +385,9 @@ |
void ElfGen::AddELFHeader(int shoff) { |
ASSERT(text_vma_ != 0); // Code must have been added. |
Write(&header_, kEI_MAG0_MAG3, 4); // EI_MAG0..EI_MAG3 |
-#if defined(TARGET_ARCH_IA32) || defined(TARGET_ARCH_ARM) |
+#if defined(TARGET_ARCH_IA32) || \ |
+ defined(TARGET_ARCH_ARM) || \ |
+ defined(TARGET_ARCH_MIPS) |
regis
2013/01/19 00:17:34
ditto
|
WriteByte(&header_, kELFCLASS32); // EI_CLASS |
#elif defined(TARGET_ARCH_X64) |
WriteByte(&header_, kELFCLASS64); // EI_CLASS |