瀏覽代碼

* Use .rodata section for Android.

git-svn-id: trunk@35553 -
yury 8 年之前
父節點
當前提交
d139868dc4
共有 1 個文件被更改,包括 4 次插入0 次删除
  1. 4 0
      compiler/aggas.pas

+ 4 - 0
compiler/aggas.pas

@@ -362,6 +362,10 @@ implementation
           (target_info.system in systems_all_windows+systems_nativent-[system_i8086_win16]) then
           (target_info.system in systems_all_windows+systems_nativent-[system_i8086_win16]) then
           secname:='.rodata';
           secname:='.rodata';
 
 
+        { Use .rodata for Android }
+        if (target_info.system in systems_android) and (atype in [sec_rodata,sec_rodata_norel]) then
+          secname:='.rodata';
+
         { section type user gives the user full controll on the section name }
         { section type user gives the user full controll on the section name }
         if atype=sec_user then
         if atype=sec_user then
           secname:=aname;
           secname:=aname;