Răsfoiți Sursa

* mipsel-android: Don't export local symbols from executable.

git-svn-id: trunk@26690 -
yury 11 ani în urmă
părinte
comite
bb269e53ac
2 a modificat fișierele cu 2 adăugiri și 2 ștergeri
  1. 1 1
      compiler/systems/i_android.pas
  2. 1 1
      compiler/systems/t_android.pas

+ 1 - 1
compiler/systems/i_android.pas

@@ -164,7 +164,7 @@ unit i_android;
             name         : 'Android for MIPSEL';
             name         : 'Android for MIPSEL';
             shortname    : 'Android';
             shortname    : 'Android';
             flags        : [tf_needs_symbol_size,tf_needs_symbol_type,tf_files_case_sensitive,
             flags        : [tf_needs_symbol_size,tf_needs_symbol_type,tf_files_case_sensitive,
-                            tf_requires_proper_alignment,tf_pic_default,
+                            tf_requires_proper_alignment,tf_pic_default,tf_safecall_exceptions,
                             tf_smartlink_sections,tf_smartlink_library,tf_has_winlike_resources];
                             tf_smartlink_sections,tf_smartlink_library,tf_has_winlike_resources];
             cpu          : cpu_mipsel;
             cpu          : cpu_mipsel;
             unit_env     : 'ANDROIDUNITS';
             unit_env     : 'ANDROIDUNITS';

+ 1 - 1
compiler/systems/t_android.pas

@@ -198,7 +198,7 @@ begin
       { several RTL symbols of FPC-compiled shared libraries   }
       { several RTL symbols of FPC-compiled shared libraries   }
       { will be bound to those of a single shared library or   }
       { will be bound to those of a single shared library or   }
       { to the main program                                    }
       { to the main program                                    }
-      if (isdll) then
+      if isdll or (cs_create_pic in current_settings.moduleswitches) then
         begin
         begin
           add('VERSION');
           add('VERSION');
           add('{');
           add('{');