VirtualBox

source: vbox/trunk/src/VBox/Runtime/testcase/tstRTLdrMachORelocs-1.disas@ 76452

Last change on this file since 76452 was 55516, checked in by vboxsync, 10 years ago

mach-o AMD64 relocation testcase.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 12.8 KB
Line 
1tstLdr-3: Addr=0000000000002000
20000000000002000 myfunc6 (10) - 0000000000002120 myfunc6_end (0)
3myfunc6:
400002000 nop ; 90
5^^^^^^^^
600002001 mov rax, 00000000000002134h ; 48 b8 34 21 00 00 00 00 00 00
70000200b mov al, byte [+000000123h wrt rip (00000000000002134h = g_EndOfData+004h)] ; 8a 05 23 01 00 00
800002011 cmp byte [+00000011ch wrt rip (00000000000002134h = g_EndOfData+004h)], 07fh ; 80 3d 1c 01 00 00 7f
900002018 cmp word [+000000113h wrt rip (00000000000002134h = g_EndOfData+004h)], word 0117fh ; 66 81 3d 13 01 00 00 7f 11
1000002021 cmp dword [+000000109h wrt rip (00000000000002134h = g_EndOfData+004h)], 09988117fh ; 81 3d 09 01 00 00 7f 11 88 99
110000202b jmp +000000104h (00000000000002134h = g_EndOfData+004h ) ; e9 04 01 00 00
1200002030 nop ; 90
1300002031 mov rax, 00000000000002120h ; 48 b8 20 21 00 00 00 00 00 00
140000203b mov al, byte [+0000000dfh wrt rip (00000000000002120h = myfunc6_end)] ; 8a 05 df 00 00 00
1500002041 cmp byte [+0000000d8h wrt rip (00000000000002120h = myfunc6_end)], 07eh ; 80 3d d8 00 00 00 7e
1600002048 cmp word [+0000000cfh wrt rip (00000000000002120h = myfunc6_end)], word 0117eh ; 66 81 3d cf 00 00 00 7e 11
1700002051 cmp dword [+0000000c5h wrt rip (00000000000002120h = myfunc6_end)], 09988117eh ; 81 3d c5 00 00 00 7e 11 88 99
180000205b jmp +0000000c0h (00000000000002120h = myfunc6_end ) ; e9 c0 00 00 00
1900002060 nop ; 90
2000002061 mov rax, 00000000000002128h ; 48 b8 28 21 00 00 00 00 00 00
210000206b mov al, byte [+0000000b7h wrt rip (00000000000002128h = g_Data.0)] ; 8a 05 b7 00 00 00
2200002071 cmp byte [+0000000b0h wrt rip (00000000000002128h = g_Data.0)], 004h ; 80 3d b0 00 00 00 04
2300002078 jmp +0000000abh (00000000000002128h = g_Data.0 ) ; e9 ab 00 00 00
240000207d nop ; 90
250000207e mov rax, 0000000000000212bh ; 48 b8 2b 21 00 00 00 00 00 00
2600002088 mov al, byte [+00000009dh wrt rip (0000000000000212bh = g_Data.3)] ; 8a 05 9d 00 00 00
270000208e cmp byte [+000000096h wrt rip (0000000000000212bh = g_Data.3)], 005h ; 80 3d 96 00 00 00 05
2800002095 cmp word [+00000008dh wrt rip (0000000000000212bh = g_Data.3)], word 00451h ; 66 81 3d 8d 00 00 00 51 04
290000209e cmp dword [+000000083h wrt rip (0000000000000212bh = g_Data.3)], 005f41091h ; 81 3d 83 00 00 00 91 10 f4 05
30000020a8 jmp +00000007eh (0000000000000212bh = g_Data.3 ) ; e9 7e 00 00 00
31000020ad nop ; 90
32000020ae mov rax, 00000000000123456h ; 48 b8 56 34 12 00 00 00 00 00
33000020b8 mov al, byte [+0001234c3h wrt rip (00000000000125581h] ; 8a 05 c3 34 12 00
34000020be cmp byte [+0001234bch wrt rip (00000000000125581h], 005h ; 80 3d bc 34 12 00 05
35000020c5 cmp word [+0001234b3h wrt rip (00000000000125581h], word 00451h ; 66 81 3d b3 34 12 00 51 04
36000020ce cmp dword [+0001234a9h wrt rip (00000000000125581h], 005f41091h ; 81 3d a9 34 12 00 91 10 f4 05
37000020d8 jmp +0001234a4h (00000000000125581h) ; e9 a4 34 12 00
38000020dd nop ; 90
39000020de cmp byte [+000000048h wrt rip (0000000000000212dh = g_Data.4.1)], 001h ; 80 3d 48 00 00 00 01
40000020e5 cmp byte [+000000042h wrt rip (0000000000000212eh = g_Data.4.2)], 002h ; 80 3d 42 00 00 00 02
41000020ec cmp byte [+00000003ch wrt rip (0000000000000212fh = g_Data.4.3)], 003h ; 80 3d 3c 00 00 00 03
42000020f3 nop ; 90
43000020f4 mov rax, 0fffffffffffffff8h ; 48 b8 f8 ff ff ff ff ff ff ff
44000020fe mov rax, 00000000000000078h ; 48 b8 78 00 00 00 00 00 00 00
4500002108 mov rax, 0fffffffffffffff8h ; 48 b8 f8 ff ff ff ff ff ff ff
4600002112 mov rax, 00000000000000078h ; 48 b8 78 00 00 00 00 00 00 00
470000211c int3 ; cc
480000211d int3 ; cc
490000211e int3 ; cc
500000211f int3 ; cc
51myfunc6_end:
5200002120 nop ; 90
5300002121 nop ; 90
5400002122 int3 ; cc
5500002123 int3 ; cc
5600002124 nop ; 90
5700002125 nop ; 90
5800002126 int3 ; cc
5900002127 int3 ; cc
60g_Data.0:
6100002128 nop ; 90
62g_Data.1:
6300002129 int3 ; cc
64g_Data.2:
650000212a nop ; 90
66g_Data.3:
670000212b int3 ; cc
68g_Data.4.0:
690000212c nop ; 90
70g_Data.4.1:
710000212d int3 ; cc
72g_Data.4.2:
730000212e nop ; 90
74g_Data.4.3:
750000212f int3 ; cc
76g_EndOfData:
7700002130 nop ; 90
7800002131 nop ; 90
7900002132 nop ; 90
8000002133 nop ; 90
8100002134 int3 ; cc
8200002135 int3 ; cc
8300002136 int3 ; cc
8400002137 int3 ; cc
8500002138 int3 ; cc
8600002139 int3 ; cc
870000213a add byte [rax], al ; 00 00
880000213c add byte [rax], al ; 00 00
890000213e add byte [rax], al ; 00 00
9000002140 and byte [rcx], ah ; 20 21
9100002142 add byte [rax], al ; 00 00
9200002144 add byte [rax], al ; 00 00
9300002146 add byte [rax], al ; 00 00
9400002148 sub byte [rcx], ah ; 28 21
950000214a add byte [rax], al ; 00 00
960000214c add byte [rax], al ; 00 00
970000214e add byte [rax], al ; 00 00
9800002150 sub dword [rcx], esp ; 29 21
9900002152 add byte [rax], al ; 00 00
10000002154 add byte [rax], al ; 00 00
10100002156 add byte [rax], al ; 00 00
10200002158 sub ah, byte [rcx] ; 2a 21
1030000215a add byte [rax], al ; 00 00
1040000215c add byte [rax], al ; 00 00
1050000215e add byte [rax], al ; 00 00
10600002160 sub esp, dword [rcx] ; 2b 21
10700002162 add byte [rax], al ; 00 00
10800002164 add byte [rax], al ; 00 00
10900002166 add byte [rax], al ; 00 00
11000002168 sub AL, 021h ; 2c 21
1110000216a add byte [rax], al ; 00 00
1120000216c add byte [rax], al ; 00 00
1130000216e add byte [rax], al ; 00 00
11400002170 sub eax, 000000021h ; 2d 21 00 00 00
11500002175 add byte [rax], al ; 00 00
11600002177 add byte [rsi], ch ; 00 2e
11700002179 and dword [rax], eax ; 21 00
1180000217b add byte [rax], al ; 00 00
1190000217d add byte [rax], al ; 00 00
1200000217f add byte [rdi], ch ; 00 2f
12100002181 and dword [rax], eax ; 21 00
12200002183 add byte [rax], al ; 00 00
12300002185 add byte [rax], al ; 00 00
12400002187 add byte [rax], dh ; 00 30
12500002189 and dword [rax], eax ; 21 00
1260000218b add byte [rax], al ; 00 00
1270000218d add byte [rax], al ; 00 00
1280000218f add byte [rax], al ; 00 00
12900002191 and byte [rax], al ; 20 00
13000002193 add byte [rax], al ; 00 00
13100002195 add byte [rax], al ; 00 00
13200002197 add byte [rsi+034h], dl ; 00 56 34
1330000219a adc al, byte [rax] ; 12 00
1340000219c add byte [rax], al ; 00 00
1350000219e add byte [rax], al ; 00 00
136000021a0 add byte [rax], al ; 00 00
137000021a2 add byte [rax], al ; 00 00
138000021a4 add byte [rax], al ; 00 00
139000021a6 add byte [rax], al ; 00 00
140000021a8 add byte [rax], al ; 00 00
141000021aa add byte [rax], al ; 00 00
142000021ac add byte [rax], al ; 00 00
143000021ae add byte [rax], al ; 00 00
144000021b0 add byte [rax], al ; 00 00
145000021b2 add byte [rax], al ; 00 00
146000021b4 add byte [rax], al ; 00 00
147000021b6 add byte [rax], al ; 00 00
148000021b8 add byte [rax], al ; 00 00
149000021ba add byte [rax], al ; 00 00
150000021bc add byte [rax], al ; 00 00
151000021be add byte [rax], al ; 00 00
152000021c0 jmp qword [-000000086h wrt rip (00000000000002140h = g_EndOfData+010h)] ; ff 25 7a ff ff ff
153000021c6 int3 ; cc
154000021c7 int3 ; cc
155000021c8 jmp qword [-000000086h wrt rip (00000000000002148h = g_EndOfData+018h)] ; ff 25 7a ff ff ff
156000021ce int3 ; cc
157000021cf int3 ; cc
158000021d0 jmp qword [-000000086h wrt rip (00000000000002150h = g_EndOfData+020h)] ; ff 25 7a ff ff ff
159000021d6 int3 ; cc
160000021d7 int3 ; cc
161000021d8 jmp qword [-000000086h wrt rip (00000000000002158h = g_EndOfData+028h)] ; ff 25 7a ff ff ff
162000021de int3 ; cc
163000021df int3 ; cc
164000021e0 jmp qword [-000000086h wrt rip (00000000000002160h = g_EndOfData+030h)] ; ff 25 7a ff ff ff
165000021e6 int3 ; cc
166000021e7 int3 ; cc
167000021e8 jmp qword [-000000086h wrt rip (00000000000002168h = g_EndOfData+038h)] ; ff 25 7a ff ff ff
168000021ee int3 ; cc
169000021ef int3 ; cc
170000021f0 jmp qword [-000000086h wrt rip (00000000000002170h = g_EndOfData+040h)] ; ff 25 7a ff ff ff
171000021f6 int3 ; cc
172000021f7 int3 ; cc
173000021f8 jmp qword [-000000086h wrt rip (00000000000002178h = g_EndOfData+048h)] ; ff 25 7a ff ff ff
174000021fe int3 ; cc
175000021ff int3 ; cc
17600002200 jmp qword [-000000086h wrt rip (00000000000002180h = g_EndOfData+050h)] ; ff 25 7a ff ff ff
17700002206 int3 ; cc
17800002207 int3 ; cc
17900002208 jmp qword [-000000086h wrt rip (00000000000002188h = g_EndOfData+058h)] ; ff 25 7a ff ff ff
1800000220e int3 ; cc
1810000220f int3 ; cc
18200002210 jmp qword [-000000086h wrt rip (00000000000002190h = g_EndOfData+060h)] ; ff 25 7a ff ff ff
18300002216 int3 ; cc
18400002217 int3 ; cc
18500002218 jmp qword [-000000086h wrt rip (00000000000002198h = g_EndOfData+068h)] ; ff 25 7a ff ff ff
1860000221e int3 ; cc
1870000221f int3 ; cc
18800002220 add byte [rax], al ; 00 00
18900002222 add byte [rax], al ; 00 00
19000002224 add byte [rax], al ; 00 00
19100002226 add byte [rax], al ; 00 00
19200002228 add byte [rax], al ; 00 00
1930000222a add byte [rax], al ; 00 00
1940000222c add byte [rax], al ; 00 00
1950000222e add byte [rax], al ; 00 00
19600002230 add byte [rax], al ; 00 00
19700002232 add byte [rax], al ; 00 00
19800002234 add byte [rax], al ; 00 00
19900002236 add byte [rax], al ; 00 00
20000002238 add byte [rax], al ; 00 00
2010000223a add byte [rax], al ; 00 00
2020000223c add byte [rax], al ; 00 00
2030000223e add byte [rax], al ; 00 00
20400002240 add al, byte [rax] ; 02 00
20500002242 add byte [rax], al ; 00 00
206tstLdr-3: SUCCESS
Note: See TracBrowser for help on using the repository browser.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette