[llvm-bugs] [Bug 42441] New: MC: Location info for fixups in .s files is missing.
via llvm-bugs
llvm-bugs at lists.llvm.org
Fri Jun 28 15:23:57 PDT 2019
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: unassignedbugs at nondot.org
Reporter: sbc at chromium.org
CC: llvm-bugs at lists.llvm.org
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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20190628/4621b725/attachment.html>
More information about the llvm-bugs
mailing list