<html>
<head>
<base href="https://bugs.llvm.org/">
</head>
<body><table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Bug ID</th>
<td><a class="bz_bug_link
bz_status_NEW "
title="NEW - Webassemly asm text parser/generator doesn't handle custom data section."
href="https://bugs.llvm.org/show_bug.cgi?id=46023">46023</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>Webassemly asm text parser/generator doesn't handle custom data section.
</td>
</tr>
<tr>
<th>Product</th>
<td>libraries
</td>
</tr>
<tr>
<th>Version</th>
<td>trunk
</td>
</tr>
<tr>
<th>Hardware</th>
<td>PC
</td>
</tr>
<tr>
<th>OS</th>
<td>Linux
</td>
</tr>
<tr>
<th>Status</th>
<td>NEW
</td>
</tr>
<tr>
<th>Severity</th>
<td>enhancement
</td>
</tr>
<tr>
<th>Priority</th>
<td>P
</td>
</tr>
<tr>
<th>Component</th>
<td>Backend: WebAssembly
</td>
</tr>
<tr>
<th>Assignee</th>
<td>unassignedbugs@nondot.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>sbc@chromium.org
</td>
</tr>
<tr>
<th>CC</th>
<td>llvm-bugs@lists.llvm.org
</td>
</tr></table>
<p>
<div>
<pre>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,@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,"",@
```</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are on the CC list for the bug.</li>
</ul>
</body>
</html>