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: [email protected]
          Reporter: [email protected]
                CC: [email protected]

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,"",@
```

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to