[LLVMbugs] [Bug 8321] New: MC-COFF: bogus reloc fixups to disp8/32
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Wed Oct 6 20:04:01 PDT 2010
http://llvm.org/bugs/show_bug.cgi?id=8321
Summary: MC-COFF: bogus reloc fixups to disp8/32
Product: libraries
Version: trunk
Platform: PC
OS/Version: Windows XP
Status: ASSIGNED
Severity: normal
Priority: P
Component: Backend: X86
AssignedTo: bigcheesegs at gmail.com
ReportedBy: geek4civic at gmail.com
CC: llvmbugs at cs.uiuc.edu
Created an attachment (id=5576)
--> (http://llvm.org/bugs/attachment.cgi?id=5576)
pecoff object file w/o mc
; foo.ll
define void @foo() {
e:
br label %i
i:
br label %i
}
define void @bar() {
e:
br label %i
i:
br label %i
}
define void @baz() {
e:
call void @baz()
ret void
}
$ llc < foo.ll | as -o as-foo.o
$ llc -filetype=obj foo.ll -o mc-foo.o
* Disassembly of as-foo.o:
00000000 <_foo>:
0: eb fe jmp 0 <_foo>
00000010 <_bar>:
10: eb fe jmp 10 <_bar>
00000020 <_baz>:
20: 83 ec 04 sub $0x4,%esp
23: e8 f8 ff ff ff call 20 <_baz>
28: 83 c4 04 add $0x4,%esp
2b: c3 ret
* Disassembly of mc-foo.o:
00000000 <_foo>:
0: e9 00 00 00 00 jmp 5 <_foo+0x5>
00000010 <_bar>:
10: e9 10 00 00 00 jmp 25 <_baz+0x5>
00000020 <_baz>:
20: 83 ec 04 sub $0x4,%esp
23: e8 00 00 00 00 call 28 <_baz+0x8>
28: 83 c4 04 add $0x4,%esp
2b: c3 ret
mc-foo.o has also *unneeded* relocations.
RELOCATION RECORDS FOR [.text]:
OFFSET TYPE VALUE
00000001 DISP32 .text
00000011 DISP32 .text
00000024 DISP32 _baz+0xffffffe0
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
More information about the llvm-bugs
mailing list