Segher Boessenkool writes: > Ah. lis and ori. HI16 is just fine there -- but note that > that doesn't use an add insn. You're patching the function lis is an addis with rA=0, don't forget... > "apply_relocate_add()", so I guess some more work is needed? Looks fine as it is to me. Paul.