RESOLVED FIXED246157
riscv64 llint fails to link with lld
https://bugs.webkit.org/show_bug.cgi?id=246157
Summary riscv64 llint fails to link with lld
Nina Kolesa
Reported 2022-10-06 08:15:58 PDT
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).
Attachments
Nina Kolesa
Comment 1 2022-10-06 08:26:09 PDT
EWS
Comment 2 2022-10-08 06:11:21 PDT
Committed 255311@main (3127e0a5094b): <https://commits.webkit.org/255311@main> Reviewed commits have been landed. Closing PR #5086 and removing active labels.
Radar WebKit Bug Importer
Comment 3 2022-10-08 06:12:16 PDT
Note You need to log in before you can comment on or make changes to this bug.