| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (c) 2012 The Native Client Authors. All rights reserved. | 2 * Copyright (c) 2012 The Native Client Authors. All rights reserved. |
| 3 * Use of this source code is governed by a BSD-style license that can be | 3 * Use of this source code is governed by a BSD-style license that can be |
| 4 * found in the LICENSE file. | 4 * found in the LICENSE file. |
| 5 */ | 5 */ |
| 6 | 6 |
| 7 /* | 7 /* |
| 8 * nacl-clang does not use the .init/.fini mechanism at all. |
| 9 */ |
| 10 #if !defined(__clang__) |
| 11 /* |
| 8 * The .init section needs to be finished by a function return. | 12 * The .init section needs to be finished by a function return. |
| 9 */ | 13 */ |
| 10 .section .init | 14 .section .init |
| 11 .p2align NACLENTRYALIGN,0x90 | 15 .p2align NACLENTRYALIGN,0x90 |
| 12 | 16 |
| 13 leave | 17 leave |
| 14 naclret | 18 naclret |
| 15 | 19 |
| 16 .p2align NACLENTRYALIGN,0xf4 | 20 .p2align NACLENTRYALIGN,0xf4 |
| 17 | 21 |
| 18 /* | 22 /* |
| 19 * The .fini section needs to be finished by a function return. | 23 * The .fini section needs to be finished by a function return. |
| 20 */ | 24 */ |
| 21 .section .fini | 25 .section .fini |
| 22 .p2align NACLENTRYALIGN,0x90 | 26 .p2align NACLENTRYALIGN,0x90 |
| 23 | 27 |
| 24 leave | 28 leave |
| 25 naclret | 29 naclret |
| 26 | 30 #endif |
| 27 .p2align NACLENTRYALIGN,0xf4 | 31 .p2align NACLENTRYALIGN,0xf4 |
| OLD | NEW |