瀏覽代碼

* fixed threadvar support on linux/i386 and android/i386 after r31639
(mantis #28672)

git-svn-id: trunk@31660 -

Jonas Maebe 10 年之前
父節點
當前提交
06fc6ac491
共有 1 個文件被更改,包括 7 次插入4 次删除
  1. 7 4
      compiler/x86/nx86ld.pas

+ 7 - 4
compiler/x86/nx86ld.pas

@@ -84,10 +84,13 @@ implementation
         if not handled then
           inherited;
 
-        case target_info.system of
-          system_i386_linux,system_i386_android:
-            location.reference.segment:=NR_GS;
-        end;
+        if (tf_section_threadvars in target_info.flags) then
+          begin
+            case target_info.system of
+              system_i386_linux,system_i386_android:
+                location.reference.segment:=NR_GS;
+            end;
+          end;
       end;