mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-07 16:28:22 +02:00
* force empty .idata section at end of each dll to be in executable with oso_keep option
git-svn-id: trunk@7126 -
This commit is contained in:
parent
c29455b111
commit
a7f5951cb0
@ -2288,6 +2288,9 @@ const pemagic : array[0..3] of byte = (
|
||||
internalobjdata.writebytes(emptyint,sizeof(emptyint));
|
||||
if target_info.system=system_x86_64_win64 then
|
||||
internalobjdata.writebytes(emptyint,sizeof(emptyint));
|
||||
{ be sure that this will not be removed }
|
||||
idata4objsection.SecOptions:=idata4objsection.SecOptions + [oso_keep];
|
||||
idata5objsection.SecOptions:=idata5objsection.SecOptions + [oso_keep];
|
||||
end;
|
||||
|
||||
function AddImport(const afuncname,amangledname:string; AOrdNr:longint;isvar:boolean):TObjSymbol;
|
||||
|
Loading…
Reference in New Issue
Block a user