When using riscv64 LLint on webkitgtk or WPE 2.38 with clang+lld, linking fails: ld: error: relocation R_RISCV_PCREL_HI20 cannot be used against symbol 'g_opcodeMap'; recompile with -fPIC (the actual log is much longer, but the same stuff) This is because the generated assembly uses the lla pseudoinstruction which forces PC-relative addressing but with non-local symbols. The bfd linker somehow eats it, while the lld linker does not. The fix here is to use a GOT lookup (la).
Pull request: https://github.com/WebKit/WebKit/pull/5086
Committed 255311@main (3127e0a5094b): <https://commits.webkit.org/255311@main> Reviewed commits have been landed. Closing PR #5086 and removing active labels.
<rdar://problem/100933102>