+ ELF linker: handle R_386_GOTOFF and R_X86_64_GOTOFF64 relocations

git-svn-id: trunk@22830 -
This commit is contained in:
sergei 2012-10-23 14:13:31 +00:00
parent 65a4d8baa2
commit 90d564e6a5
2 changed files with 9 additions and 1 deletions

View File

@ -408,7 +408,10 @@ implementation
address:=address+relocval;
end;
//R_386_GOTOFF: !!TODO
R_386_GOTOFF:
begin
address:=address+relocval-gotsymbol.address;
end;
else
begin

View File

@ -484,6 +484,11 @@ implementation
address:=address+relocval;
end;
R_X86_64_GOTOFF64:
begin
address:=address+relocval-gotsymbol.address;
end;
else
begin
writeln(objreloc.typ);