|
@@ -1366,17 +1366,17 @@ implementation
|
|
|
|
|
|
|
|
|
procedure tstaticvarsym.set_mangledname(const s:string);
|
|
|
-{$ifdef FPC_USE_TLS_DIRECTORY}
|
|
|
+{$ifdef TEST_TLS_DIRECTORY}
|
|
|
{ TLS directory requires some labels in specific sections
|
|
|
I implemented this by allowing '.section sec_name mangled_name'
|
|
|
for name 'xxxx'; specifier PM 2011-07-01 }
|
|
|
var
|
|
|
newmangledname : string;
|
|
|
p : longint;
|
|
|
-{$endif FPC_USE_TLS_DIRECTORY}
|
|
|
+{$endif TEST_TLS_DIRECTORY}
|
|
|
begin
|
|
|
stringdispose(_mangledname);
|
|
|
-{$ifdef FPC_USE_TLS_DIRECTORY}
|
|
|
+{$ifdef TEST_TLS_DIRECTORY}
|
|
|
if copy(s,1,length('.section '))='.section ' then
|
|
|
begin
|
|
|
newmangledname:=copy(s,length('.section ')+1,length(s));
|
|
@@ -1392,7 +1392,7 @@ implementation
|
|
|
end;
|
|
|
end
|
|
|
else
|
|
|
-{$endif FPC_USE_TLS_DIRECTORY}
|
|
|
+{$endif TEST_TLS_DIRECTORY}
|
|
|
{$ifdef compress}
|
|
|
_mangledname:=stringdup(minilzw_encode(s));
|
|
|
{$else}
|