[fpc-pascal] Fcp for arm linux for EABI

Henry Vermaak henry.vermaak at gmail.com
Thu Apr 26 14:54:04 CEST 2007


another thing that's important to do when you're using svn is edit
compiler/systems/i_linux.pas.  go to the arm_linux section and remove
the tf_smartlink_sections from the flags.  you can also edit the
endianness of the target here (endian_little or endian_big).  see for
example my diff for my big endian arm:

hcv at technical02:~/freepascal/latest$ svn diff -r HEAD
compiler/systems/i_linux.pas
Index: compiler/systems/i_linux.pas
===================================================================
--- compiler/systems/i_linux.pas        (revision 7167)
+++ compiler/systems/i_linux.pas        (working copy)
@@ -525,7 +525,7 @@
             name         : 'Linux for ARM';
             shortname    : 'Linux';
             flags        :
[tf_needs_symbol_size,tf_needs_symbol_type,tf_files_case_sensitive,
-
tf_use_function_relative_addresses,tf_requires_proper_alignment,tf_smartlink_sections];
+
tf_use_function_relative_addresses,tf_requires_proper_alignment];
             cpu          : cpu_arm;
             unit_env     : 'LINUXUNITS';
             extradefines : 'UNIX;HASUNIX';
@@ -558,7 +558,7 @@
             res          : res_none;
             dbg          : dbg_stabs;
             script       : script_unix;
-            endian       : endian_little;
+            endian       : endian_big;
             alignment    :
               (
                 procalign       : 4;

henry



More information about the fpc-pascal mailing list