aboutsummaryrefslogtreecommitdiff
path: root/ld/testsuite/ld-i386/load7.s
diff options
context:
space:
mode:
authorH.J. Lu <hjl.tools@gmail.com>2016-05-06 05:28:18 -0700
committerH.J. Lu <hjl.tools@gmail.com>2016-05-06 05:28:18 -0700
commit2856a6272397d159aa2a21fd2ef0f1a6e80f5e41 (patch)
tree37fb96014b48aa3a36a7d311a2be2d1f29301866 /ld/testsuite/ld-i386/load7.s
parentfd7ed446fbee07c70ebc7d1e92f1ece665d7fc64 (diff)
downloadgdb-2856a6272397d159aa2a21fd2ef0f1a6e80f5e41.zip
gdb-2856a6272397d159aa2a21fd2ef0f1a6e80f5e41.tar.gz
gdb-2856a6272397d159aa2a21fd2ef0f1a6e80f5e41.tar.bz2
Test load conversion with symbol versioning for x86
* testsuite/ld-i386/i386.exp: Run load7. * testsuite/ld-i386/load7.d: New file. * testsuite/ld-i386/load7.map: Likewise. * testsuite/ld-i386/load7.s: Likewise. * testsuite/ld-x86-64/load2.d: Likewise. * testsuite/ld-x86-64/load2.map: Likewise. * testsuite/ld-x86-64/load2.s: Likewise. * testsuite/ld-x86-64/x86-64.exp: Run load2.
Diffstat (limited to 'ld/testsuite/ld-i386/load7.s')
-rw-r--r--ld/testsuite/ld-i386/load7.s18
1 files changed, 18 insertions, 0 deletions
diff --git a/ld/testsuite/ld-i386/load7.s b/ld/testsuite/ld-i386/load7.s
new file mode 100644
index 0000000..8849a38
--- /dev/null
+++ b/ld/testsuite/ld-i386/load7.s
@@ -0,0 +1,18 @@
+ .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(%ecx), %eax
+ movl bar@GOT(%ecx), %eax
+ movl __start_my_section@GOT(%ecx), %eax
+ movl __stop_my_section@GOT(%ecx), %eax
+ .size _start, .-_start
+ .comm pad,4,4
+ .comm bar,4,4