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: [email protected]
          Reporter: [email protected]
                CC: [email protected]
    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.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs

Reply via email to