diff options
Diffstat (limited to 'ld/testsuite/ld-x86-64/pr27016a.s')
-rw-r--r-- | ld/testsuite/ld-x86-64/pr27016a.s | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/ld/testsuite/ld-x86-64/pr27016a.s b/ld/testsuite/ld-x86-64/pr27016a.s new file mode 100644 index 0000000..b64851a --- /dev/null +++ b/ld/testsuite/ld-x86-64/pr27016a.s @@ -0,0 +1,23 @@ + .text + .comm global_int,4,4 + .globl main + .type main, @function +main: + .cfi_startproc + pushq %rbp + .cfi_def_cfa_offset 16 + .cfi_offset 6, -16 + movq %rsp, %rbp + .cfi_def_cfa_register 6 + movq thesym@GOTPCREL(%rip), %r11 + movl (%r11), %eax + leal 1(%rax), %edx + movq thesym@GOTPCREL(%rip), %r11 + movl %edx, (%r11) + movl $0, %eax + popq %rbp + .cfi_def_cfa 7, 8 + ret + .cfi_endproc + .size main, .-main + .section .note.GNU-stack,"",@progbits |