[Webkit-unassigned] [Bug 246157] New: riscv64 llint fails to link with lld

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu Oct 6 08:15:58 PDT 2022


https://bugs.webkit.org/show_bug.cgi?id=246157

            Bug ID: 246157
           Summary: riscv64 llint fails to link with lld
           Product: WebKit
           Version: WebKit Local Build
          Hardware: Other
                OS: Linux
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: JavaScriptCore
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: dkolesa at igalia.com

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).

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20221006/76b57fa5/attachment.htm>


More information about the webkit-unassigned mailing list