| 1 | #ifdef __LP64__ |
| 2 | # define ALIGN 3 |
| 3 | #else |
| 4 | # define ALIGN 2 |
| 5 | #endif |
| 6 | .section ".note.gnu.property", "a" |
| 7 | .p2align ALIGN |
| 8 | .long 1f - 0f /* name length. */ |
| 9 | .long 3f - 1f /* data length. */ |
| 10 | /* NT_GNU_PROPERTY_TYPE_0 */ |
| 11 | .long 5 /* note type. */ |
| 12 | 0: |
| 13 | .asciz "GNU" /* vendor name. */ |
| 14 | 1: |
| 15 | .p2align ALIGN |
| 16 | /* GNU_PROPERTY_NO_COPY_ON_PROTECTED */ |
| 17 | .long 2 /* pr_type. */ |
| 18 | .long 0 /* pr_datasz. */ |
| 19 | .p2align ALIGN |
| 20 | 3: |
| 21 | |
| 22 | .section ".note.gnu.property", "a" |
| 23 | .p2align ALIGN |
| 24 | .long 1f - 0f /* name length. */ |
| 25 | .long 3f - 1f /* data length. */ |
| 26 | /* NT_GNU_PROPERTY_TYPE_0 */ |
| 27 | .long 5 /* note type. */ |
| 28 | 0: |
| 29 | .asciz "GNU" /* vendor name. */ |
| 30 | 1: |
| 31 | .p2align ALIGN |
| 32 | /* GNU_PROPERTY_STACK_SIZE */ |
| 33 | .long 1 /* pr_type. */ |
| 34 | .long 5f - 4f /* pr_datasz. */ |
| 35 | 4: |
| 36 | .dc.a 0x800000 /* Stack size. */ |
| 37 | 5: |
| 38 | .p2align ALIGN |
| 39 | 3: |