aboutsummaryrefslogtreecommitdiff
path: root/ld/testsuite/ld-i386/mov3.s
diff options
context:
space:
mode:
Diffstat (limited to 'ld/testsuite/ld-i386/mov3.s')
-rw-r--r--ld/testsuite/ld-i386/mov3.s15
1 files changed, 15 insertions, 0 deletions
diff --git a/ld/testsuite/ld-i386/mov3.s b/ld/testsuite/ld-i386/mov3.s
new file mode 100644
index 0000000..0dc54eb
--- /dev/null
+++ b/ld/testsuite/ld-i386/mov3.s
@@ -0,0 +1,15 @@
+ .section my_section,"aw",@progbits
+ .long 0x12345678
+ .text
+ .globl foo
+ .type foo, @function
+foo:
+ ret
+ .size foo, .-foo
+ .globl _start
+ .type _start, @function
+_start:
+ movl foo@GOT+1, %eax
+ movl __start_my_section@GOT+1, %eax
+ movl __stop_my_section@GOT+1, %eax
+ .size _start, .-_start