mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-11 05:48:17 +02:00
+ initialize size and relflags in TRelRelocation
git-svn-id: trunk@45262 -
This commit is contained in:
parent
732f1d9df6
commit
03acadaf1e
@ -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
|
||||
*****************************************************************************}
|
||||
|
Loading…
Reference in New Issue
Block a user