Commit | Line | Data |
---|---|---|
a6af384b L |
1 | .section my_section,"aw",@progbits |
2 | .long 0x12345678 | |
80d87326 L |
3 | .text |
4 | .globl foo | |
5 | .type foo, @function | |
6 | foo: | |
7 | ret | |
8 | .size foo, .-foo | |
9 | .globl _start | |
10 | .type _start, @function | |
11 | _start: | |
bae420ef L |
12 | movl foo@GOTPCREL(%rip), %eax |
13 | movl bar@GOTPCREL(%rip), %r11d | |
80d87326 | 14 | movq foo@GOTPCREL(%rip), %rax |
bae420ef | 15 | movq bar@GOTPCREL(%rip), %r11 |
a6af384b | 16 | movq __start_my_section@GOTPCREL(%rip), %rax |
bae420ef | 17 | movq __stop_my_section@GOTPCREL(%rip), %r11 |
80d87326 | 18 | .size _start, .-_start |
b31bcacc L |
19 | .comm pad,4,4 |
20 | .comm bar,4,4 |