* i8086-msdos internal linker: put the static libraries in a group, to enable

multiple passes when resolving symbols

git-svn-id: trunk@31338 -
This commit is contained in:
nickysn 2015-08-18 13:37:57 +00:00
parent 3c0d83bd74
commit 0dab94e35d

View File

@ -434,12 +434,14 @@ begin
if s<>'' then if s<>'' then
LinkScript.Concat('READOBJECT ' + maybequoted(s)); LinkScript.Concat('READOBJECT ' + maybequoted(s));
end; end;
LinkScript.Concat('GROUP');
while not StaticLibFiles.Empty do while not StaticLibFiles.Empty do
begin begin
s:=StaticLibFiles.GetFirst; s:=StaticLibFiles.GetFirst;
if s<>'' then if s<>'' then
LinkScript.Concat('READSTATICLIBRARY '+MaybeQuoted(s)); LinkScript.Concat('READSTATICLIBRARY '+MaybeQuoted(s));
end; end;
LinkScript.Concat('ENDGROUP');
LinkScript.Concat('ENTRYNAME ..start'); LinkScript.Concat('ENTRYNAME ..start');
end; end;