Commit | Line | Data |
---|---|---|
73784fa5 L |
1 | .protected foo |
2 | .globl foo | |
3 | .data | |
4 | .align 4 | |
5 | .type foo, @object | |
6 | .size foo, 4 | |
7 | foo: | |
8 | .long 1 | |
9 | .text | |
10 | .globl bar | |
11 | .type bar, @function | |
12 | bar: | |
13 | movl foo(%rip), %eax | |
14 | ret | |
15 | .size bar, .-bar | |
16 | ||
17 | .section ".note.gnu.property", "a" | |
18 | .p2align 3 | |
19 | .long 1f - 0f /* name length. */ | |
20 | .long 3f - 2f /* data length. */ | |
21 | /* NT_GNU_PROPERTY_TYPE_0 */ | |
22 | .long 5 /* note type. */ | |
23 | 0: .asciz "GNU" /* vendor name. */ | |
24 | 1: | |
25 | .p2align 3 | |
26 | 2: | |
27 | /* GNU_PROPERTY_NO_COPY_ON_PROTECTED */ | |
28 | .long 2 /* pr_type. */ | |
29 | .long 0 /* pr_datasz. */ | |
30 | .p2align 3 | |
31 | 3: |