mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-23 00:09:31 +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
|
||||
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
|
||||
|
Loading…
Reference in New Issue
Block a user