mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-19 13:59:29 +02:00
+ 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 -
This commit is contained in:
parent
aed4f10d67
commit
3d63b1a2b2
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user