~/local/src/LLVM-svn/gcc40-cmake-build/bin/llvm-mc -triple=powerpc-darwin8 -mcpu=g4 -relocation-model=pic -filetype=obj hello-puts-linux.s -o hello-puts-linux.o
.ll-machodump was created from hello-puts.ll-o, which was generated via llc -filetype=obj ...
diff -u hello-puts.ll-machodump hello-puts-linux.machodump
--- hello-puts.ll-machodump 2013-07-24 19:20:30.000000000 -0700
+++ hello-puts-linux.machodump 2013-07-25 13:28:02.000000000 -0700
@@ -10,9 +10,9 @@
('size', 396)
('segment_name', '\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00')
('vm_addr', 0)
- ('vm_size', 130)
+ ('vm_size', 179)
('file_offset', 528)
- ('file_size', 130)
+ ('file_size', 179)
('maxprot', 7)
('initprot', 7)
('num_sections', 5)
@@ -22,10 +22,10 @@
(('section_name', '__text\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00')
('segment_name', '__TEXT\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00')
('address', 0)
- ('size', 80)
+ ('size', 120)
('offset', 528)
('alignment', 4)
- ('reloc_offset', 660)
+ ('reloc_offset', 708)
('num_reloc', 5)
('flags', 0x80000400)
('reserved1', 0)
@@ -33,27 +33,27 @@
),
('_relocations', [
# Relocation 0
- (('word-0', 0x34),
+ (('word-0', 0x44),
('word-1', 0x3c3)),
# Relocation 1
(('word-0', 0xab000030),
- ('word-1', 0x74)),
+ ('word-1', 0xa4)),
# Relocation 2
(('word-0', 0xa1000000),
- ('word-1', 0x14)),
+ ('word-1', 0x18)),
# Relocation 3
- (('word-0', 0xac00002c),
- ('word-1', 0x74)),
+ (('word-0', 0xac000028),
+ ('word-1', 0xa4)),
# Relocation 4
- (('word-0', 0xa1000060),
- ('word-1', 0x14)),
+ (('word-0', 0xa100008c),
+ ('word-1', 0x18)),
])
# Section 1
(('section_name', '__textcoal_nt\x00\x00\x00')
('segment_name', '__TEXT\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00')
- ('address', 80)
+ ('address', 120)
('size', 0)
- ('offset', 608)
+ ('offset', 648)
('alignment', 0)
('reloc_offset', 0)
('num_reloc', 0)
@@ -66,11 +66,11 @@
# Section 2
(('section_name', '__picsymbolstub1')
('segment_name', '__TEXT\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00')
- ('address', 80)
+ ('address', 128)
('size', 32)
- ('offset', 608)
+ ('offset', 656)
('alignment', 4)
- ('reloc_offset', 700)
+ ('reloc_offset', 748)
('num_reloc', 4)
('flags', 0x80000408)
('reserved1', 0)
@@ -79,25 +79,25 @@
('_relocations', [
# Relocation 0
(('word-0', 0xab000014),
- ('word-1', 0x70)),
+ ('word-1', 0xa0)),
# Relocation 1
(('word-0', 0xa1000000),
- ('word-1', 0x58)),
+ ('word-1', 0x88)),
# Relocation 2
(('word-0', 0xac00000c),
- ('word-1', 0x70)),
+ ('word-1', 0xa0)),
# Relocation 3
(('word-0', 0xa1000018),
- ('word-1', 0x58)),
+ ('word-1', 0x88)),
])
# Section 3
(('section_name', '__la_symbol_ptr\x00')
('segment_name', '__DATA\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00')
- ('address', 112)
+ ('address', 160)
('size', 4)
- ('offset', 640)
+ ('offset', 688)
('alignment', 0)
- ('reloc_offset', 732)
+ ('reloc_offset', 780)
('num_reloc', 1)
('flags', 0x7)
('reserved1', 1)
@@ -111,9 +111,9 @@
# Section 4
(('section_name', '__cstring\x00\x00\x00\x00\x00\x00\x00')
('segment_name', '__TEXT\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00')
- ('address', 116)
- ('size', 14)
- ('offset', 644)
+ ('address', 164)
+ ('size', 15)
+ ('offset', 692)
('alignment', 0)
('reloc_offset', 0)
('num_reloc', 0)
@@ -128,9 +128,9 @@
# Load Command 1
(('command', 2)
('size', 24)
- ('symoff', 748)
+ ('symoff', 796)
('nsyms', 3)
- ('stroff', 784)
+ ('stroff', 832)
('strsize', 40)
('_string_data', '\x00_main\x00dyld_stub_binding_helper\x00_puts\x00\x00\x00')
('_symbols', [
@@ -175,7 +175,7 @@
('nmodtab', 0)
('extrefsymoff', 0)
('nextrefsyms', 0)
- ('indirectsymoff', 740)
+ ('indirectsymoff', 788)
('nindirectsyms', 2)
('extreloff', 0)
('nextrel', 0)