./trunk/gcc430/vcs_diff_compiler.patch 2026-06-23-19:38
> uname -a FreeBSD cfarm430.jing.rocks 16.0-CURRENT FreeBSD 16.0-CURRENT main-n286086-4d125ed6e7d4 GENERIC amd64
diff --git a/compiler/Makefile.fpc b/compiler/Makefile.fpc
index 5ebc21e883..7371b09b5a 100644
--- a/compiler/Makefile.fpc
+++ b/compiler/Makefile.fpc
@@ -387,7 +387,7 @@ $(error The $(PPC_TARGET) architecture is not (yet) supported by the FPC/LLVM co
endif
# No need to prevent cross-OS compilation
-#ifeq ($(findstring $(OS_TARGET),darwin iphonesim linux openbsd),)
+#ifeq ($(findstring $(OS_TARGET),darwin iphonesim linux openbsd freebsd),)
#$(error The $(OS_TARGET) target OS is not (yet) supported by the FPC/LLVM code generator)
#endif
diff --git a/compiler/systems/i_bsd.pas b/compiler/systems/i_bsd.pas
index f5e604e507..3b3cfa4ed8 100644
--- a/compiler/systems/i_bsd.pas
+++ b/compiler/systems/i_bsd.pas
@@ -118,6 +118,9 @@
{$ifdef tls_threadvars}
tf_section_threadvars,
{$endif tls_threadvars}
+{$ifdef llvm}
+ tf_use_psabieh,
+{$endif llvm}
tf_needs_symbol_type,tf_needs_symbol_size
,tf_smartlink_sections,tf_has_winlike_resources
,tf_supports_hidden_symbols];
@@ -263,6 +266,9 @@
flags : [tf_needs_symbol_size,tf_needs_dwarf_cfi,tf_library_needs_pic,tf_needs_symbol_type,
tf_files_case_sensitive,
tf_dwarf_only_local_labels,
+{$ifdef llvm}
+ tf_use_psabieh,
+{$endif llvm}
{tf_pic_uses_got,}tf_smartlink_sections,tf_has_winlike_resources,tf_supports_hidden_symbols];
cpu : cpu_x86_64;
unit_env : 'BSDUNITS';