Commit | Line | Data |
---|---|---|
a6bb11b2 YZ |
1 | .cpu generic |
2 | .text | |
3 | .align 2 | |
4 | .global foo | |
5 | .type foo, %function | |
6 | foo: | |
7 | adrp x4, ptrs | |
8 | add x3, x4, :lo12:ptrs | |
9 | str w0, [x4,#:lo12:ptrs] | |
10 | str w1, [x3,4] | |
11 | str w2, [x3,8] | |
12 | adrp x4, :got:ptrs | |
13 | ldr x3, [x4,#:got_lo12:ptrs] | |
14 | mov w0, w4 | |
15 | ret | |
3d715ce4 | 16 | ldr x3, [x4,#:gotpage_lo14:ptrs] |
a6bb11b2 YZ |
17 | .size foo, .-foo |
18 | .comm ptrs,12,8 |