x86: Count PLT for GOTOFF relocation against IFUNC symbol
[deliverable/binutils-gdb.git] / ld / testsuite / ld-i386 / pr27998a.s
diff --git a/ld/testsuite/ld-i386/pr27998a.s b/ld/testsuite/ld-i386/pr27998a.s
new file mode 100644 (file)
index 0000000..ec55cd6
--- /dev/null
@@ -0,0 +1,22 @@
+       .text
+       .p2align 4
+       .type   my_foo, @function
+my_foo:
+       ret
+       .size   my_foo, .-my_foo
+       .p2align 4
+       .type   resolve_foo, @function
+resolve_foo:
+       leal    my_foo@GOTOFF(%eax), %eax
+       ret
+       .size   resolve_foo, .-resolve_foo
+       .globl  foo
+       .hidden foo
+       .type   foo, @gnu_indirect_function
+       .set    foo,resolve_foo
+       .p2align 4
+       .globl  bar
+       .type   bar, @function
+bar:
+       leal    foo@GOTOFF(%eax), %eax
+       ret
This page took 0.027882 seconds and 4 git commands to generate.