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

            Bug ID: 52376
           Summary: wasm64: unimplemented R_WASM_GLOBAL_INDEX_I64 using
                    -generate-arange-section
           Product: libraries
           Version: trunk
          Hardware: PC
                OS: All
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: Backend: WebAssembly
          Assignee: unassignedb...@nondot.org
          Reporter: a...@crichton.co
                CC: aardap...@gmail.com, llvm-bugs@lists.llvm.org

Created attachment 25413
  --> https://bugs.llvm.org/attachment.cgi?id=25413&action=edit
reduced bytecode

In compiling some Rust code this is a crash that I've been seeing when enabling
debug information. It looks like the Rust compiler by default will pass the
`-generate-aragne-section` argument to LLVM which causes this crash, and
avoiding passing that flag will work. I've attached the bugpoint-reduced
bitcode here to this issue and can reproduce the crash with:


$ llc -filetype=obj -o foo.o -generate-arange-section
./bugpoint-reduced-simplified.bc
unimplemented R_WASM_GLOBAL_INDEX_I64
UNREACHABLE executed at
/home/acrichto/code/rust/src/llvm-project/llvm/lib/Target/WebAssembly/MCTargetDesc/WebAssemblyWasmObjectWriter.cpp:146!
PLEASE submit a bug report to https://bugs.llvm.org/ and include the crash
backtrace.
Stack dump:
...


I'll be updating the Rust compiler to avoid passing -generate-arange-section
now on the wasm64 target (temporarily), but figured it'd be good to open a bug
still!

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