OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2010 The Native Client Authors. All rights reserved. | 2 * Copyright 2010 The Native Client Authors. All rights reserved. |
3 * Use of this source code is governed by a BSD-style license that can | 3 * Use of this source code is governed by a BSD-style license that can |
4 * be found in the LICENSE file. | 4 * be found in the LICENSE file. |
5 */ | 5 */ |
6 | 6 |
| 7 |
| 8 .global template_func_misaligned_replacement |
| 9 .global template_func_misaligned_replacement_end |
| 10 .global template_func_illegal_call_target |
| 11 .global template_func_illegal_call_target_end |
| 12 .global template_func_illegal_register_replacement |
| 13 .global template_func_illegal_register_replacement_end |
| 14 .global template_func_illegal_guard_replacement |
| 15 .global template_func_illegal_guard_replacement_end |
| 16 template_func_misaligned_replacement: |
| 17 template_func_illegal_call_target: |
| 18 template_func_illegal_register_replacement: |
| 19 template_func_illegal_guard_replacement |
| 20 /* Not implemented */ |
| 21 bkpt 0x7777 /* hlt */ |
| 22 template_func_misaligned_replacement_end: |
| 23 template_func_illegal_call_target_end: |
| 24 template_func_illegal_register_replacement_end: |
| 25 template_func_illegal_guard_replacement_end: |
| 26 |
7 .global template_func | 27 .global template_func |
8 .global template_func_end | 28 .global template_func_end |
9 template_func: | 29 template_func: |
10 mov r0, #1234 & 0xff | 30 mov r0, #1234 & 0xff |
11 orr r0, #1234 & 0xff00 | 31 orr r0, #1234 & 0xff00 |
12 bic lr, lr, #0xf000000f | 32 bic lr, lr, #0xf000000f |
13 bx lr | 33 bx lr |
14 template_func_end: | 34 template_func_end: |
15 | 35 |
16 .global template_func_replacement | 36 .global template_func_replacement |
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
65 data segment. */ | 85 data segment. */ |
66 .data | 86 .data |
67 | 87 |
68 | 88 |
69 .global invalid_code | 89 .global invalid_code |
70 .global invalid_code_end | 90 .global invalid_code_end |
71 .p2align 4 | 91 .p2align 4 |
72 invalid_code: | 92 invalid_code: |
73 bx lr | 93 bx lr |
74 invalid_code_end: | 94 invalid_code_end: |
OLD | NEW |