x86-64: Move PIC check for PC-relative relocations back
[deliverable/binutils-gdb.git] / ld / testsuite / ld-x86-64 / pr17689b.S
index c95f891057a082c2c05c66851de22a68bdba4528..64485c7e9164071c639c0f451f36d89fa9a83802 100644 (file)
@@ -5,8 +5,18 @@ main:
        subq    $8, %rsp
        movq    bar_alias(%rip), %rdi
        call    foo@PLT
+       movq    ptr(%rip), %rax
+       movq    (%rax), %rdi
+       call    foo@PLT
        xorl    %eax, %eax
        addq    $8, %rsp
        ret
        .size   main, .-main
+       .globl  ptr
+       .section        .data.rel,"aw",@progbits
+       .align 8
+       .type   ptr, @object
+       .size   ptr, 8
+ptr:
+       .quad   bar_alias
        .section        .note.GNU-stack,"",@progbits
This page took 0.031295 seconds and 4 git commands to generate.