[llvm-bugs] [Bug 46023] New: Webassemly asm text parser/generator doesn't handle custom data section.
via llvm-bugs
llvm-bugs at lists.llvm.org
Thu May 21 12:04:09 PDT 2020
https://bugs.llvm.org/show_bug.cgi?id=46023
Bug ID: 46023
Summary: Webassemly asm text parser/generator doesn't handle
custom data section.
Product: libraries
Version: trunk
Hardware: PC
OS: Linux
Status: NEW
Severity: enhancement
Priority: P
Component: Backend: WebAssembly
Assignee: unassignedbugs at nondot.org
Reporter: sbc at chromium.org
CC: llvm-bugs at lists.llvm.org
Currently I can write the following llvm code and it will generate a working
working object file:
```
@foo = global i32 42, section "mysection", align 4
```
However if I output to assembly I get:
```
$ llc --mtriple=wasm32 --asm-verbose=false test.ll -o -
.type foo, at object
.section mysection,"aw",@
.globl foo
.p2align 2
foo:
.int32 42
.size foo, 4
```
Which the assembly reader rejects:
```
$ llvm-mc -triple=wasm32-unknown-unknown test.s
test.s:2:23: error: unknown section kind: mysection
.section mysection,"",@
```
--
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/20200521/a387f605/attachment.html>
More information about the llvm-bugs
mailing list