فهرست منبع

+ Added a flag allowing a section to be written into both .dbg and executable files. This is needed at least for ELF SHT_NOTE sections.

git-svn-id: trunk@22614 -
sergei 12 سال پیش
والد
کامیت
3d63b1a2b2
1فایلهای تغییر یافته به همراه5 افزوده شده و 3 حذف شده
  1. 5 3
      compiler/ogbase.pas

+ 5 - 3
compiler/ogbase.pas

@@ -133,7 +133,9 @@ interface
        { Contains only strings }
        oso_strings,
        { Ignore this section }
-       oso_disabled
+       oso_disabled,
+       { Must be cloned when writing separate debug file }
+       oso_debug_copy
      );
 
      TObjSectionOptions = set of TObjSectionOption;
@@ -2043,7 +2045,7 @@ implementation
       begin
         { don't write normal section if writing only debug info }
         if (ExeWriteMode=ewm_dbgonly) and
-           not(oso_debug in exesec.SecOptions) then
+           (exesec.SecOptions*[oso_debug,oso_debug_copy]=[]) then
           exit;
 
         if (oso_Data in exesec.SecOptions) then
@@ -3115,7 +3117,7 @@ implementation
             exesec:=TExeSection(ExeSectionList[j]);
             { don't write normal section if writing only debug info }
             if (ExeWriteMode=ewm_dbgonly) and
-               not(oso_debug in exesec.SecOptions) then
+               (exesec.SecOptions*[oso_debug,oso_debug_copy]=[]) then
               continue;
 
             if oso_data in exesec.SecOptions then