* 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:
pierre 2007-04-17 23:09:09 +00:00
parent c29455b111
commit a7f5951cb0

View File

@ -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;