[llvm-bugs] [Bug 42714] New: wasm-ld: error: /tmp/wasm-shared-issue-60c549.o: relocation R_WASM_MEMORY_ADDR_SLEB cannot be used against symbol .L.str; recompile with -fPIC

via llvm-bugs llvm-bugs at lists.llvm.org
Mon Jul 22 07:56:00 PDT 2019


https://bugs.llvm.org/show_bug.cgi?id=42714

            Bug ID: 42714
           Summary: wasm-ld: error: /tmp/wasm-shared-issue-60c549.o:
                    relocation R_WASM_MEMORY_ADDR_SLEB cannot be used
                    against symbol .L.str; recompile with -fPIC
           Product: libraries
           Version: trunk
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: Backend: WebAssembly
          Assignee: unassignedbugs at nondot.org
          Reporter: ian at iandouglasscott.com
                CC: llvm-bugs at lists.llvm.org

Created attachment 22270
  --> https://bugs.llvm.org/attachment.cgi?id=22270&action=edit
C code that produces this issue

The attached C code fails to build with "clang --target=wasm32-unknown-unknown
-fPIC -nostdlib -Wl,--shared -Wl,--export-all wasm-shared-issue.c".

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20190722/1eb5051b/attachment-0001.html>


More information about the llvm-bugs mailing list