Browse Source

* the .pdata section currently only needs to be always included for arm-wince (at least until we have full SEH support there as well)

git-svn-id: trunk@44943 -
svenbarth 5 years ago
parent
commit
ada6d8ce5e
1 changed files with 1 additions and 3 deletions
  1. 1 3
      compiler/ogcoff.pas

+ 1 - 3
compiler/ogcoff.pas

@@ -2343,9 +2343,7 @@ const pemagic : array[0..3] of byte = (
                  begin
                  begin
                    if (Pos('.edata',secname)=1) or
                    if (Pos('.edata',secname)=1) or
                       (Pos('.rsrc',secname)=1) or
                       (Pos('.rsrc',secname)=1) or
-{$ifndef x86_64}
-                      (Pos('.pdata',secname)=1) or
-{$endif}
+                      ((target_info.system=system_arm_wince) and (Pos('.pdata',secname)=1)) or
                       (Pos('.fpc',secname)=1) then
                       (Pos('.fpc',secname)=1) then
                      include(secoptions,oso_keep);
                      include(secoptions,oso_keep);
                    if (Pos('.idata',secname)=1) then
                    if (Pos('.idata',secname)=1) then