mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-24 06:19:11 +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)
|
||||
public
|
||||
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;
|
||||
end;
|
||||
|
||||
@ -281,6 +282,11 @@ implementation
|
||||
result:=secnames[atype];
|
||||
end;
|
||||
|
||||
function TRelObjData.sectiontype2align(atype:TAsmSectiontype):longint;
|
||||
begin
|
||||
result:=1;
|
||||
end;
|
||||
|
||||
procedure TRelObjData.writeReloc(Data: TRelocDataInt; len: aword; p: TObjSymbol; Reloctype: TObjRelocationType);
|
||||
var
|
||||
bytes: array [0..1] of Byte;
|
||||
|
Loading…
Reference in New Issue
Block a user