浏览代码

Solaris assembler does not want 0x90 fill pattern for text section alignment

git-svn-id: trunk@32197 -
pierre 9 年之前
父节点
当前提交
61aa4b6a40
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      compiler/aggas.pas

+ 1 - 1
compiler/aggas.pas

@@ -602,7 +602,7 @@ implementation
                     writer.AsmWrite(','+tostr(fillop))
                     writer.AsmWrite(','+tostr(fillop))
 {$ifdef x86}
 {$ifdef x86}
                   { force NOP as alignment op code }
                   { force NOP as alignment op code }
-                  else if LastSecType=sec_code then
+                  else if (LastSecType=sec_code) and (asminfo^.id<>as_solaris_as) then
                     writer.AsmWrite(',0x90');
                     writer.AsmWrite(',0x90');
 {$endif x86}
 {$endif x86}
 {$ifdef m68k}
 {$ifdef m68k}