瀏覽代碼

* Fixed bug in BSS section on 64-bit platforms

git-svn-id: branches/resources@9712 -
michael 17 年之前
父節點
當前提交
f38c26b177
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      packages/fcl-res/src/elfwriter.pp

+ 1 - 1
packages/fcl-res/src/elfwriter.pp

@@ -486,7 +486,7 @@ begin
     aStream.Position,fDataAlignment*aResources.Count,fDataAlignment);
   fSections.Add('.text',SHT_PROGBITS,SHF_ALLOC or SHF_EXECINSTR,aStream.Position,0,4);
   fSections.Add('.data',SHT_PROGBITS,SHF_ALLOC or SHF_WRITE,aStream.Position,0,4);
-  fSections.Add('.bss', SHT_PROGBITS,SHF_ALLOC or SHF_WRITE,aStream.Position,0,4);
+  fSections.Add('.bss', SHT_NOBITS,SHF_ALLOC or SHF_WRITE,aStream.Position,0,4);
 end;
 
 procedure TAbstractElfSubWriter.WriteStrTab(aStream: TStream);