浏览代码

+ call ApplyAsmSymbolRestrictions for symbols that should be exported from ar files

git-svn-id: trunk@45285 -
nickysn 5 年之前
父节点
当前提交
997184778a
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      compiler/ogbase.pas

+ 1 - 1
compiler/ogbase.pas

@@ -1710,7 +1710,7 @@ implementation
         { export globals and common symbols, this is needed
           for .a files }
         if p.bind in [AB_GLOBAL,AB_PRIVATE_EXTERN,AB_COMMON] then
-         FWriter.writesym(p.name);
+         FWriter.writesym(ApplyAsmSymbolRestrictions(p.name));
       end;
 
     procedure TObjOutput.WriteSectionContent(Data:TObjData);