[llvm-bugs] [Bug 52376] New: wasm64: unimplemented R_WASM_GLOBAL_INDEX_I64 using -generate-arange-section

via llvm-bugs llvm-bugs at lists.llvm.org
Mon Nov 1 14:00:39 PDT 2021


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: unassignedbugs at nondot.org
          Reporter: alex at crichton.co
                CC: aardappel at gmail.com, llvm-bugs at 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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20211101/50215bba/attachment.html>


More information about the llvm-bugs mailing list