Pārlūkot izejas kodu

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

git-svn-id: trunk@31660 -

Jonas Maebe 10 gadi atpakaļ
vecāks
revīzija
06fc6ac491
1 mainītis faili ar 7 papildinājumiem un 4 dzēšanām
  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;