https://bugs.llvm.org/show_bug.cgi?id=42441
Bug ID: 42441
Summary: MC: Location info for fixups in .s files is missing.
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]
Fixup issues are always reported as "<unknown>:0: error: ..."
e.g.
$ llvm-mc -triple=wasm32-unknown-unknown test.s -filetype=obj -o tmp.o
<unknown>:0: error: Cannot represent a difference across sections
Where as x86 gives:
$ llvm-mc -triple=i686-linux-gnu test.s -filetype=obj -o tmp.o
test.s:16:9: error: Cannot represent a difference across sections
Wasm .s file:
```
.section .rodata.foo,"",@
.hidden foo
foo:
.int8 1
.int8 4
.int8 2
.size foo, 3
.section .rodata.bar,"",@
.hidden bar
bar:
.int8 9
.int8 8
.size bar, 2
.text
.section .text.test_annotation,"",@
main:
.functype main () -> (i32)
i32.const foo-bar
end_function
```
--
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