]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blobdiff - ld/testsuite/ld-x86-64/protected3.s
Add extern_protected_data and set it for x86
[thirdparty/binutils-gdb.git] / ld / testsuite / ld-x86-64 / protected3.s
index e4af6e7fb342e77aec9266aa5e10ae8de9663001..75380501746a9ab96f99971eddbdf21b3c70d8e2 100644 (file)
@@ -10,6 +10,7 @@ foo:
 .globl bar
        .type   bar, @function
 bar:
-       movl    foo(%rip), %eax
+       movq    foo@GOTPCREL(%rip), %rax
+       movl    (%rax), %eax
        ret
        .size   bar, .-bar