ld: Disable DT_RELR in some -z relro tests
[binutils-gdb.git] / ld / testsuite / ld-x86-64 / pr27016a.s
1 .text
2 .comm global_int,4,4
3 .globl main
4 .type main, @function
5 main:
6 .cfi_startproc
7 pushq %rbp
8 .cfi_def_cfa_offset 16
9 .cfi_offset 6, -16
10 movq %rsp, %rbp
11 .cfi_def_cfa_register 6
12 movq thesym@GOTPCREL(%rip), %r11
13 movl (%r11), %eax
14 leal 1(%rax), %edx
15 movq thesym@GOTPCREL(%rip), %r11
16 movl %edx, (%r11)
17 movl $0, %eax
18 popq %rbp
19 .cfi_def_cfa 7, 8
20 ret
21 .cfi_endproc
22 .size main, .-main
23 .section .note.GNU-stack,"",@progbits