Selaa lähdekoodia

* removed rodata support for ppc64 again because it doesn't work on
linux/ppc64. Added explanation why it doesn't work and what's needed

git-svn-id: trunk@8304 -

Jonas Maebe 18 vuotta sitten
vanhempi
commit
399201ad7d
1 muutettua tiedostoa jossa 6 lisäystä ja 1 poistoa
  1. 6 1
      compiler/aggas.pas

+ 6 - 1
compiler/aggas.pas

@@ -248,8 +248,13 @@ implementation
           '.text',
           '.text',
           '.data',
           '.data',
 { why doesn't .rodata work? (FK) }
 { why doesn't .rodata work? (FK) }
+{ sometimes we have to create a data.rel.ro instead of .rodata, e.g. for  }
+{ vtables (and anything else containing relocations), otherwise those are }
+{ not relocated properly on e.g. linux/ppc64. g++ generates there for a   }
+{ vtable for a class called Window:                                       }
+{ .section .data.rel.ro._ZTV6Window,"awG",@progbits,_ZTV6Window,comdat    }
 {$warning TODO .rodata not yet working}
 {$warning TODO .rodata not yet working}
-{$if defined(arm) or defined(powerpc) or defined(powerpc64)}
+{$if defined(arm) or defined(powerpc)}
           '.rodata',
           '.rodata',
 {$else arm}
 {$else arm}
           '.data',
           '.data',