CVSROOT:        /cvs
Module name:    src
Changes by:     [email protected]        2026/05/29 13:32:41

Modified files:
        gnu/llvm/llvm/lib/Target/PowerPC: PPCAsmPrinter.cpp 

Log message:
Unbreak and update powerpc retguard for llvm 22

For RETGUARD_LOAD_COOKIE when -fno-pie (as in macppc kernels), change
a relocation in -fno-pie (as in macppc kernels) from unusual S_HIGHA
"__retguard_3671@higha" to usual S_HA "__retguard_3671@ha".  This
prevents an error from lld 22,

ld: error: rasops15.o:(function rasops15_init: .text+0x2): unknown \
relocation (111) against symbol __retguard_3671

For RETGUARD_LOAD_PC in PIC code, change an instruction from 'bl .+4'
to 'bcl 20,31,.+4' to fix branch prediction.  This follows the same
change in upstream llvm,
https://github.com/llvm/llvm-project/issues/128644

ok jca@ naddy@

Reply via email to