Debugging a R_PPC64_REL24 overflow


I have a module that triggers a "R_PPC64_REL24 overflow" error when
OrcJITing in cling but not when OrcJITing that module in lli. I don't
see how to debug this - the RelocationEntry is the same for both, but
for lli the delta is kosher, for cling it's too large.

I tried different RelocationModel and CodeModel settings without success.

Can anyone suggest what to look at?

Cheers, Axel.