mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-14 14:29:44 +02:00
* always use 1-byte section alignment for the rel internal obj writer
git-svn-id: trunk@45490 -
This commit is contained in:
parent
e82b9c3b2e
commit
36323fe424
@ -73,6 +73,7 @@ interface
|
|||||||
TRelObjData = class(TObjData)
|
TRelObjData = class(TObjData)
|
||||||
public
|
public
|
||||||
function sectionname(atype:TAsmSectiontype;const aname:string;aorder:TAsmSectionOrder):string;override;
|
function sectionname(atype:TAsmSectiontype;const aname:string;aorder:TAsmSectionOrder):string;override;
|
||||||
|
function sectiontype2align(atype:TAsmSectiontype):longint;override;
|
||||||
procedure writeReloc(Data:TRelocDataInt;len:aword;p:TObjSymbol;Reloctype:TObjRelocationType);override;
|
procedure writeReloc(Data:TRelocDataInt;len:aword;p:TObjSymbol;Reloctype:TObjRelocationType);override;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
@ -281,6 +282,11 @@ implementation
|
|||||||
result:=secnames[atype];
|
result:=secnames[atype];
|
||||||
end;
|
end;
|
||||||
|
|
||||||
|
function TRelObjData.sectiontype2align(atype:TAsmSectiontype):longint;
|
||||||
|
begin
|
||||||
|
result:=1;
|
||||||
|
end;
|
||||||
|
|
||||||
procedure TRelObjData.writeReloc(Data: TRelocDataInt; len: aword; p: TObjSymbol; Reloctype: TObjRelocationType);
|
procedure TRelObjData.writeReloc(Data: TRelocDataInt; len: aword; p: TObjSymbol; Reloctype: TObjRelocationType);
|
||||||
var
|
var
|
||||||
bytes: array [0..1] of Byte;
|
bytes: array [0..1] of Byte;
|
||||||
|
Loading…
Reference in New Issue
Block a user