Browse Source

+ set the oso_debug section flags when reading an OMF section, which belongs to
the 'DWARF' class

git-svn-id: trunk@39222 -

nickysn 7 years ago
parent
commit
7103e3cb5c
1 changed files with 2 additions and 0 deletions
  1. 2 0
      compiler/ogomf.pas

+ 2 - 0
compiler/ogomf.pas

@@ -1302,6 +1302,8 @@ implementation
             exit;
           end;
         objsec.Size:=SegDefRec.SegmentLength;
+        if SegClassName='DWARF' then
+          objsec.SecOptions:=objsec.SecOptions+[oso_debug];
         if (SegClassName='HEAP') or
            (SegClassName='STACK') or (SegDefRec.Combination=scStack) or
            (SegClassName='BEGDATA') or