[LLVMbugs] [Bug 22097] New: 16bit code misassembled by llvm-mc

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Mon Jan 5 11:32:20 PST 2015


http://llvm.org/bugs/show_bug.cgi?id=22097

            Bug ID: 22097
           Summary: 16bit code misassembled by llvm-mc
           Product: libraries
           Version: trunk
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: Backend: X86
          Assignee: unassignedbugs at nondot.org
          Reporter: rdivacky at freebsd.org
                CC: llvmbugs at cs.uiuc.edu
    Classification: Unclassified

Created attachment 13628
  --> http://llvm.org/bugs/attachment.cgi?id=13628&action=edit
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.

-- 
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/20150105/4e01f7f6/attachment.html>


More information about the llvm-bugs mailing list