mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-10 08:08:36 +02:00
+ ELF linker: handle R_386_GOTOFF and R_X86_64_GOTOFF64 relocations
git-svn-id: trunk@22830 -
This commit is contained in:
parent
65a4d8baa2
commit
90d564e6a5
@ -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
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user