+ initialize size and relflags in TRelRelocation

git-svn-id: trunk@45262 -
This commit is contained in:
nickysn 2020-05-05 03:03:02 +00:00
parent 732f1d9df6
commit 03acadaf1e

View File

@ -58,6 +58,9 @@ interface
TRelRelocation = class(TObjRelocation)
public
RelFlags: TRelRelocationFlags;
constructor CreateSymbol(ADataOffset:TObjSectionOfs;s:TObjSymbol;Atyp:TObjRelocationType);
constructor CreateSection(ADataOffset:TObjSectionOfs;aobjsec:TObjSection;Atyp:TObjRelocationType);
end;
{ TRelObjData }
@ -104,6 +107,24 @@ implementation
delete(result,1,1);
end;
{*****************************************************************************
TRelRelocation
*****************************************************************************}
constructor TRelRelocation.CreateSymbol(ADataOffset: TObjSectionOfs; s: TObjSymbol; Atyp: TObjRelocationType);
begin
inherited;
size:=2;
RelFlags:=[rrfSymbol];
end;
constructor TRelRelocation.CreateSection(ADataOffset: TObjSectionOfs; aobjsec: TObjSection; Atyp: TObjRelocationType);
begin
inherited;
size:=2;
RelFlags:=[];
end;
{*****************************************************************************
TRelObjData
*****************************************************************************}