<html>
    <head>
      <base href="http://llvm.org/bugs/" />
    </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 --- - 16bit code misassembled by llvm-mc"
   href="http://llvm.org/bugs/show_bug.cgi?id=22097">22097</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>16bit code misassembled by llvm-mc
          </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>normal
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>P
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>Backend: X86
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>unassignedbugs@nondot.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>rdivacky@freebsd.org
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>llvmbugs@cs.uiuc.edu
          </td>
        </tr>

        <tr>
          <th>Classification</th>
          <td>Unclassified
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Created <span class=""><a href="attachment.cgi?id=13628" name="attach_13628" title="test case">attachment 13628</a> <a href="attachment.cgi?id=13628&action=edit" title="test case">[details]</a></span>
test case

The attached testcase (using .code16) is misassembled by llvm-mc as witnessed
by the changed offsets of symbols. ie.

ref11-amd64 i386$ $CC -no-integrated-as -c -m32 boot1.s && objdump -d boot1.o |
grep 'main.*>:'
0000003e <main>:
00000063 <main.1>:
00000068 <main.2>:
00000075 <main.3>:
00000087 <main.4>:
00000089 <main.5>:
ref11-amd64 i386$ $CC -integrated-as -c -m32 boot1.s && objdump -d boot1.o |
grep 'main.*>:'
0000003e <main>:
00000065 <main.1>:
0000006a <main.2>:
0000007b <main.3>:
00000090 <main.4>:
00000092 <main.5>:


Note that "main" is at correct offset but main.1 is 2 bytes off and it keeps
increasing.</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>