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