+ added hack for supporting linking with .obj files, generated by Borland's

binobj tool with the i8086-msdos internal linker

git-svn-id: trunk@32381 -
This commit is contained in:
nickysn 2015-11-20 17:40:34 +00:00
parent d3660fec31
commit 30a7875d56

View File

@ -1135,6 +1135,12 @@ implementation
SegClassName:=UpCase(SegClassName);
OverlayName:=UpCase(OverlayName);
end;
{ hack for supporting object modules, generated by Borland's BINOBJ tool }
if (SegClassName='') and (SegmentName='CODE') then
begin
SegmentName:=InputFileName;
SegClassName:='CODE';
end;
secoptions:=[];
objsec:=TOmfObjSection(objdata.createsection(SegmentName+'||'+SegClassName,SecAlign,secoptions,false));
objsec.FClassName:=SegClassName;