Browse Source

* target flags for x86_64-freebsd fixed
* use external assembler on x86_64-freebsd for now because dwarf doesn't work with the internal one

git-svn-id: trunk@11769 -

florian 17 năm trước cách đây
mục cha
commit
9fb21f5c9b
1 tập tin đã thay đổi với 10 bổ sung8 xóa
  1. 10 8
      compiler/systems/i_bsd.pas

+ 10 - 8
compiler/systems/i_bsd.pas

@@ -57,10 +57,11 @@ unit i_bsd;
             name         : 'FreeBSD/ELF for i386';
             shortname    : 'FreeBSD';
             flags        : [tf_pic_uses_got,tf_files_case_sensitive,tf_use_function_relative_addresses,
-            {$ifdef segment_threadvars}
-                                        tf_section_threadvars,
-            {$endif segment_threadvars}
-                           tf_needs_symbol_type,tf_needs_symbol_size,tf_smartlink_library {,tf_smartlink_sections},tf_has_winlike_resources];
+{$ifdef segment_threadvars}
+                            tf_section_threadvars,
+{$endif segment_threadvars}
+                            tf_needs_symbol_type,tf_needs_symbol_size,tf_smartlink_library
+                            {,tf_smartlink_sections},tf_has_winlike_resources];
             cpu          : cpu_i386;
             unit_env     : 'BSDUNITS';
             extradefines : 'UNIX;BSD;HASUNIX';
@@ -120,9 +121,10 @@ unit i_bsd;
             system       : system_x86_64_freebsd;
             name         : 'FreeBSD for x86-64';
             shortname    : 'FreeBSD';
-            flags        : [tf_needs_symbol_size,tf_needs_dwarf_cfi,{Linux: tf_library_needs_pic,}tf_needs_symbol_type,
-                            tf_files_case_sensitive,tf_use_function_relative_addresses,tf_smartlink_library
-                                {	tf_pic_uses_got,tf_smartlink_sections},tf_has_winlike_resources];
+            flags        : [tf_needs_symbol_size,tf_needs_dwarf_cfi,tf_library_needs_pic,tf_needs_symbol_type,
+                            tf_files_case_sensitive,tf_use_function_relative_addresses,tf_smartlink_library,
+                            tf_dwarf_only_local_labels
+                            { tf_pic_uses_got,tf_smartlink_sections},tf_has_winlike_resources];
             cpu          : cpu_x86_64;
             unit_env     : 'BSDUNITS';
             extradefines : 'UNIX;HASUNIX;BSD';
@@ -147,7 +149,7 @@ unit i_bsd;
             Cprefix      : '';
             newline      : #10;
             dirsep       : '/';
-            assem        : as_x86_64_elf64;
+            assem        : as_gas;
             assemextern  : as_gas;
             link         : nil;
             linkextern   : nil;