Commit | Line | Data |
---|---|---|
a06ea964 NC |
1 | #name: aarch64-farcall-back |
2 | #source: farcall-back.s | |
3 | #as: | |
4 | #ld: -Ttext 0x1000 --section-start .foo=0x100000000 | |
5 | #notarget: aarch64_be-*-* | |
6 | #objdump: -dr | |
7 | #... | |
8 | ||
9 | Disassembly of section .text: | |
10 | ||
11 | 0000000000001000 <_start>: | |
9a2ebffd JW |
12 | 1000: 14000414 b 2050 <__bar1_veneer> |
13 | 1004: 94000413 bl 2050 <__bar1_veneer> | |
14 | 1008: 14000408 b 2028 <__bar2_veneer> | |
15 | 100c: 94000407 bl 2028 <__bar2_veneer> | |
16 | 1010: 1400040a b 2038 <__bar3_veneer> | |
17 | 1014: 94000409 bl 2038 <__bar3_veneer> | |
a06ea964 NC |
18 | 1018: d65f03c0 ret |
19 | ... | |
20 | ||
21 | 000000000000201c <_back>: | |
22 | 201c: d65f03c0 ret | |
23 | ||
9a2ebffd JW |
24 | [ \t]+2020:[ \t]+14000014[ \t]+b[ \t]+2070 <__bar1_veneer\+0x20> |
25 | [ \t]+2024:[ \t]+d503201f[ \t]+nop | |
26 | 0000000000002028 <__bar2_veneer>: | |
27 | 2028: f07ffff0 adrp x16, 100001000 <bar1\+0x1000> | |
28 | 202c: 91002210 add x16, x16, #0x8 | |
29 | 2030: d61f0200 br x16 | |
30 | 2034: 00000000 .inst 0x00000000 ; undefined | |
a06ea964 | 31 | |
9a2ebffd JW |
32 | 0000000000002038 <__bar3_veneer>: |
33 | 2038: 58000090 ldr x16, 2048 <__bar3_veneer\+0x10> | |
34 | 203c: 10000011 adr x17, 203c <__bar3_veneer\+0x4> | |
35 | 2040: 8b110210 add x16, x16, x17 | |
36 | 2044: d61f0200 br x16 | |
37 | 2048: ffffffd4 .word 0xffffffd4 | |
38 | 204c: 00000000 .word 0x00000000 | |
a06ea964 | 39 | |
9a2ebffd JW |
40 | 0000000000002050 <__bar1_veneer>: |
41 | 2050: d07ffff0 adrp x16, 100000000 <bar1> | |
42 | 2054: 91000210 add x16, x16, #0x0 | |
43 | 2058: d61f0200 br x16 | |
a06ea964 NC |
44 | ... |
45 | ||
46 | Disassembly of section .foo: | |
47 | ||
48 | 0000000100000000 <bar1>: | |
49 | 100000000: d65f03c0 ret | |
9a2ebffd | 50 | 100000004: 14000807 b 100002020 <___start_veneer> |
a06ea964 NC |
51 | ... |
52 | ||
53 | 0000000100001008 <bar2>: | |
54 | 100001008: d65f03c0 ret | |
9a2ebffd | 55 | 10000100c: 14000405 b 100002020 <___start_veneer> |
a06ea964 NC |
56 | ... |
57 | ||
58 | 0000000100002010 <bar3>: | |
59 | 100002010: d65f03c0 ret | |
9a2ebffd | 60 | 100002014: 14000009 b 100002038 <___back_veneer> |
a06ea964 | 61 | |
9a2ebffd JW |
62 | [ \t]+100002018:[ \t]+1400000e[ \t]+b[ \t]+100002050 <___back_veneer\+0x18> |
63 | [ \t]+10000201c:[ \t]+d503201f[ \t]+nop | |
64 | 0000000100002020 <___start_veneer>: | |
65 | 100002020: 58000090 ldr x16, 100002030 <___start_veneer\+0x10> | |
66 | 100002024: 10000011 adr x17, 100002024 <___start_veneer\+0x4> | |
67 | 100002028: 8b110210 add x16, x16, x17 | |
68 | 10000202c: d61f0200 br x16 | |
69 | 100002030: ffffefdc .word 0xffffefdc | |
70 | 100002034: fffffffe .word 0xfffffffe | |
a06ea964 | 71 | |
9a2ebffd JW |
72 | 0000000100002038 <___back_veneer>: |
73 | 100002038: 90800010 adrp x16, 2000 <_start\+0x1000> | |
74 | 10000203c: 91007210 add x16, x16, #0x1c | |
75 | 100002040: d61f0200 br x16 | |
a06ea964 | 76 | ... |