|
@@ -1520,7 +1520,6 @@ implementation
|
|
RawRecord: TOmfRawRecord;
|
|
RawRecord: TOmfRawRecord;
|
|
i,idx: Integer;
|
|
i,idx: Integer;
|
|
objsym: TObjSymbol;
|
|
objsym: TObjSymbol;
|
|
- ExternalNameElem: TOmfExternalNameElement;
|
|
|
|
ExtDefRec: TOmfRecord_EXTDEF;
|
|
ExtDefRec: TOmfRecord_EXTDEF;
|
|
begin
|
|
begin
|
|
ExtNames:=TFPHashObjectList.Create;
|
|
ExtNames:=TFPHashObjectList.Create;
|
|
@@ -1532,7 +1531,7 @@ implementation
|
|
objsym:=TObjSymbol(Data.ObjSymbolList[i]);
|
|
objsym:=TObjSymbol(Data.ObjSymbolList[i]);
|
|
if objsym.bind=AB_EXTERNAL then
|
|
if objsym.bind=AB_EXTERNAL then
|
|
begin
|
|
begin
|
|
- ExternalNameElem:=TOmfExternalNameElement.Create(ExtNames,objsym.Name);
|
|
|
|
|
|
+ TOmfExternalNameElement.Create(ExtNames,objsym.Name);
|
|
objsym.symidx:=idx;
|
|
objsym.symidx:=idx;
|
|
Inc(idx);
|
|
Inc(idx);
|
|
end;
|
|
end;
|
|
@@ -4411,7 +4410,7 @@ cleanup:
|
|
var
|
|
var
|
|
s: TSymStr;
|
|
s: TSymStr;
|
|
Separator: SizeInt;
|
|
Separator: SizeInt;
|
|
- SegName, SegClass: string;
|
|
|
|
|
|
+ {SegName,} SegClass: string;
|
|
IsStack, IsBss: Boolean;
|
|
IsStack, IsBss: Boolean;
|
|
begin
|
|
begin
|
|
{ allow mixing initialized and uninitialized data in the same section
|
|
{ allow mixing initialized and uninitialized data in the same section
|
|
@@ -4423,12 +4422,12 @@ cleanup:
|
|
Separator:=Pos('||',s);
|
|
Separator:=Pos('||',s);
|
|
if Separator>0 then
|
|
if Separator>0 then
|
|
begin
|
|
begin
|
|
- SegName:=Copy(s,1,Separator-1);
|
|
|
|
|
|
+ //SegName:=Copy(s,1,Separator-1);
|
|
SegClass:=Copy(s,Separator+2,Length(s)-Separator-1);
|
|
SegClass:=Copy(s,Separator+2,Length(s)-Separator-1);
|
|
end
|
|
end
|
|
else
|
|
else
|
|
begin
|
|
begin
|
|
- SegName:=s;
|
|
|
|
|
|
+ //SegName:=s;
|
|
SegClass:='';
|
|
SegClass:='';
|
|
end;
|
|
end;
|
|
{ wlink recognizes the stack segment by the class name 'STACK' }
|
|
{ wlink recognizes the stack segment by the class name 'STACK' }
|