mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-11 19:05:54 +02:00
* Don't crash on a PLT-generating relocation to a local symbol (which should not normally appear, but nevertheless is possible).
git-svn-id: trunk@23481 -
This commit is contained in:
parent
0560af663c
commit
40c510403f
@ -212,8 +212,11 @@ implementation
|
|||||||
R_X86_64_PLTOFF64,
|
R_X86_64_PLTOFF64,
|
||||||
R_X86_64_GOTPLT64:
|
R_X86_64_GOTPLT64:
|
||||||
begin
|
begin
|
||||||
objsym:=ObjReloc.symbol.exesymbol.ObjSymbol;
|
if assigned(ObjReloc.symbol) and assigned(ObjReloc.symbol.exesymbol) then
|
||||||
objsym.refs:=objsym.refs or symref_plt;
|
begin
|
||||||
|
objsym:=ObjReloc.symbol.exesymbol.ObjSymbol;
|
||||||
|
objsym.refs:=objsym.refs or symref_plt;
|
||||||
|
end;
|
||||||
end;
|
end;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user