mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-14 10:09:20 +02:00
Linux/PPC64: fix missing TOC loads
Routines loading a global symbol need the TOC register
(cherry picked from commit 2de72c8541
)
This commit is contained in:
parent
084e3e7b9a
commit
73e8d5b39e
@ -1055,6 +1055,7 @@ unit cgppc;
|
|||||||
(assigned(ref.symbol) and
|
(assigned(ref.symbol) and
|
||||||
not assigned(ref.relsymbol)) then
|
not assigned(ref.relsymbol)) then
|
||||||
begin
|
begin
|
||||||
|
include(current_procinfo.flags,pi_needs_got);
|
||||||
tmpreg := load_got_symbol(list, ref.symbol.name, asmsym2indsymflags(ref.symbol));
|
tmpreg := load_got_symbol(list, ref.symbol.name, asmsym2indsymflags(ref.symbol));
|
||||||
if (ref.base = NR_NO) then
|
if (ref.base = NR_NO) then
|
||||||
ref.base := tmpreg
|
ref.base := tmpreg
|
||||||
|
Loading…
Reference in New Issue
Block a user