aboutsummaryrefslogtreecommitdiff
path: root/ld/testsuite/ld-xtensa/relax-static-local-pie.d
diff options
context:
space:
mode:
authorMax Filippov <jcmvbkbc@gmail.com>2018-07-19 21:00:29 -0700
committerMax Filippov <jcmvbkbc@gmail.com>2018-07-23 12:05:43 -0700
commitf5e263426f1f191ae85584a82dd793cfd3c951e9 (patch)
tree06097447d4edcdc9a5bfbc66fe841cc83579588e /ld/testsuite/ld-xtensa/relax-static-local-pie.d
parentda90fdf9936c532665e2a743d2fc5cf5e8f6816c (diff)
downloadgdb-f5e263426f1f191ae85584a82dd793cfd3c951e9.zip
gdb-f5e263426f1f191ae85584a82dd793cfd3c951e9.tar.gz
gdb-f5e263426f1f191ae85584a82dd793cfd3c951e9.tar.bz2
xtensa: ld: add tests for static linkage relaxation
ld/ 2018-07-23 Max Filippov <jcmvbkbc@gmail.com> * testsuite/ld-xtensa/relax-static-defs.s: New file. * testsuite/ld-xtensa/relax-static-local-pie.d: New file. * testsuite/ld-xtensa/relax-static-local-shared.d: New file. * testsuite/ld-xtensa/relax-static-local.s: New file. * testsuite/ld-xtensa/relax-static-pie.d: New file. * testsuite/ld-xtensa/relax-static-shared.d: New file. * testsuite/ld-xtensa/relax-static.s: New file. * testsuite/ld-xtensa/relax-undef-weak-local-pie.d: New file. * testsuite/ld-xtensa/relax-undef-weak-local-shared.d: New file. * testsuite/ld-xtensa/relax-undef-weak-local.s: New file. * testsuite/ld-xtensa/relax-undef-weak-pie.d: New file. * testsuite/ld-xtensa/relax-undef-weak-shared.d: New file. * testsuite/ld-xtensa/relax-undef-weak.s: New file. * testsuite/ld-xtensa/xtensa.exp: New file.
Diffstat (limited to 'ld/testsuite/ld-xtensa/relax-static-local-pie.d')
-rw-r--r--ld/testsuite/ld-xtensa/relax-static-local-pie.d17
1 files changed, 17 insertions, 0 deletions
diff --git a/ld/testsuite/ld-xtensa/relax-static-local-pie.d b/ld/testsuite/ld-xtensa/relax-static-local-pie.d
new file mode 100644
index 0000000..c23e33f
--- /dev/null
+++ b/ld/testsuite/ld-xtensa/relax-static-local-pie.d
@@ -0,0 +1,17 @@
+#source: relax-static-local.s
+#source: relax-static-defs.s
+#ld: -pie
+#readelf: -r
+#...
+Relocation section '\.rela\.dyn' .* 6 .*
+#...
+.*R_XTENSA_RELATIVE.*
+.*R_XTENSA_RELATIVE.*
+.*R_XTENSA_RELATIVE.*
+.*R_XTENSA_RELATIVE.*
+.*R_XTENSA_RELATIVE.*
+.*R_XTENSA_RELATIVE.*
+#failif
+#...
+Relocation section '\.rela\.plt' .*
+#...