summaryrefslogtreecommitdiff
path: root/ld/testsuite/ld-i386/pr22782.s
diff options
context:
space:
mode:
Diffstat (limited to 'ld/testsuite/ld-i386/pr22782.s')
-rw-r--r--ld/testsuite/ld-i386/pr22782.s15
1 files changed, 15 insertions, 0 deletions
diff --git a/ld/testsuite/ld-i386/pr22782.s b/ld/testsuite/ld-i386/pr22782.s
new file mode 100644
index 00000000000..b8a42fc65f9
--- /dev/null
+++ b/ld/testsuite/ld-i386/pr22782.s
@@ -0,0 +1,15 @@
+ .text
+ .globl _start
+ .type _start, @function
+_start:
+ movl errno@indntpoff, %eax
+ movl %gs:(%eax), %eax
+ ret
+ .globl errno
+ .hidden errno
+ .section .tbss,"awT",@nobits
+ .align 4
+ .type errno, @object
+ .size errno, 4
+errno:
+ .zero 4