浏览代码

Do not set usesectionprogbits and usesectionflags to true for solaris assembler

Pierre Muller 3 年之前
父节点
当前提交
4a8b2fb284
共有 1 个文件被更改,包括 2 次插入1 次删除
  1. 2 1
      compiler/aggas.pas

+ 2 - 1
compiler/aggas.pas

@@ -565,7 +565,8 @@ implementation
              writer.AsmWrite('.section ');
              { sectionname may rename those sections, so we do not write flags/progbits for them,
                the assembler will ignore them/spite out a warning anyways }
-             if not(atype in [sec_data,sec_rodata,sec_rodata_norel]) then
+             if not(atype in [sec_data,sec_rodata,sec_rodata_norel]) and
+                not(asminfo^.id=as_solaris_as) then
                begin
                  usesectionflags:=true;
                  usesectionprogbits:=true;