فهرست منبع

* riscv64-linux: generate PIC for all units as it is required for shared libraries

git-svn-id: trunk@48948 -
florian 4 سال پیش
والد
کامیت
62ea31f255
6فایلهای تغییر یافته به همراه166 افزوده شده و 164 حذف شده
  1. 1 1
      Makefile
  2. 1 1
      compiler/systems/i_linux.pas
  3. 1 1
      rtl/Makefile
  4. 1 1
      rtl/linux/Makefile
  5. 161 159
      utils/fpcm/fpcmake.inc
  6. 1 1
      utils/fpcm/fpcmake.ini

+ 1 - 1
Makefile

@@ -1692,7 +1692,7 @@ ifdef CREATESHARED
 override FPCOPT+=-Cg
 endif
 ifneq ($(findstring $(OS_TARGET),dragonfly freebsd openbsd netbsd linux solaris),)
-ifneq ($(findstring $(CPU_TARGET),x86_64 mips mipsel),)
+ifneq ($(findstring $(CPU_TARGET),x86_64 mips mipsel riscv64),)
 override FPCOPT+=-Cg
 endif
 endif

+ 1 - 1
compiler/systems/i_linux.pas

@@ -1177,7 +1177,7 @@ unit i_linux;
             system       : system_riscv64_linux;
             name         : 'Linux for RISC-V 64';
             shortname    : 'Linux';
-            flags        : [tf_needs_symbol_size,tf_smartlink_sections,tf_needs_dwarf_cfi,
+            flags        : [tf_needs_symbol_size,tf_library_needs_pic,tf_smartlink_sections,tf_needs_dwarf_cfi,
                             tf_needs_symbol_type,tf_files_case_sensitive,
                             tf_requires_proper_alignment,tf_has_winlike_resources,
                             tf_supports_hidden_symbols

+ 1 - 1
rtl/Makefile

@@ -1525,7 +1525,7 @@ ifdef CREATESHARED
 override FPCOPT+=-Cg
 endif
 ifneq ($(findstring $(OS_TARGET),dragonfly freebsd openbsd netbsd linux solaris),)
-ifneq ($(findstring $(CPU_TARGET),x86_64 mips mipsel),)
+ifneq ($(findstring $(CPU_TARGET),x86_64 mips mipsel riscv64),)
 override FPCOPT+=-Cg
 endif
 endif

+ 1 - 1
rtl/linux/Makefile

@@ -3772,7 +3772,7 @@ ifdef CREATESHARED
 override FPCOPT+=-Cg
 endif
 ifneq ($(findstring $(OS_TARGET),dragonfly freebsd openbsd netbsd linux solaris),)
-ifneq ($(findstring $(CPU_TARGET),x86_64 mips mipsel),)
+ifneq ($(findstring $(CPU_TARGET),x86_64 mips mipsel riscv64),)
 override FPCOPT+=-Cg
 endif
 endif

تفاوت فایلی نمایش داده نمی شود زیرا این فایل بسیار بزرگ است
+ 161 - 159
utils/fpcm/fpcmake.inc


+ 1 - 1
utils/fpcm/fpcmake.ini

@@ -1517,7 +1517,7 @@ endif
 # create always pic'ed code on x86_64, mips and mipsel
 # on unix-like systems
 ifneq ($(findstring $(OS_TARGET),dragonfly freebsd openbsd netbsd linux solaris),)
-ifneq ($(findstring $(CPU_TARGET),x86_64 mips mipsel),)
+ifneq ($(findstring $(CPU_TARGET),x86_64 mips mipsel riscv64),)
 override FPCOPT+=-Cg
 endif
 endif

برخی فایل ها در این مقایسه diff نمایش داده نمی شوند زیرا تعداد فایل ها بسیار زیاد است