<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 - MC: Location info for fixups in .s files is missing."
   href="https://bugs.llvm.org/show_bug.cgi?id=42441">42441</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>MC: Location info for fixups in .s files is missing.
          </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>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

```</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>