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: unassignedb...@nondot.org
          Reporter: i...@iandouglasscott.com
                CC: llvm-bugs@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.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to