A fix for LuaJIT usage as a dynamic library was just uploaded and I attached that patch.
The link on this bug report continues to be valid as the Pull Request was updated: https://patch-diff.githubusercontent.com/raw/LuaJIT/LuaJIT/pull/54.patch
0007-PPC64-Fix-external-branches-that-should-address-on-R.patch
Description: 0007-PPC64-Fix-external-branches-that-should-address-on-R.patch