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:
Jonas Maebe 2021-11-28 18:30:52 +01:00
parent 084e3e7b9a
commit 73e8d5b39e

View File

@ -1055,6 +1055,7 @@ unit cgppc;
(assigned(ref.symbol) and
not assigned(ref.relsymbol)) then
begin
include(current_procinfo.flags,pi_needs_got);
tmpreg := load_got_symbol(list, ref.symbol.name, asmsym2indsymflags(ref.symbol));
if (ref.base = NR_NO) then
ref.base := tmpreg