Pārlūkot izejas kodu

* properly align FPC_RESLOCATION so that linking does not fail on some architectures (e.g. ppc64)

git-svn-id: branches/resources@9710 -
tom_at_work 17 gadi atpakaļ
vecāks
revīzija
942d68b716
1 mainītis faili ar 3 papildinājumiem un 0 dzēšanām
  1. 3 0
      compiler/pmodules.pas

+ 3 - 0
compiler/pmodules.pas

@@ -255,6 +255,9 @@ implementation
       if (target_res.id in [res_elf,res_macho]) then
         begin
         ResourceInfo:=TAsmList.Create;
+
+        maybe_new_object_file(ResourceInfo);
+        new_section(ResourceInfo,sec_data,'FPC_RESLOCATION',sizeof(aint));
         ResourceInfo.concat(Tai_symbol.Createname_global('FPC_RESLOCATION',AT_DATA,0));
         if ResourcesUsed then
           { Valid pointer to resource information }