aboutsummaryrefslogtreecommitdiff
path: root/ld/testsuite/ld-powerpc/powerpc.exp
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2011-07-11 12:03:55 +0000
committerAlan Modra <amodra@gmail.com>2011-07-11 12:03:55 +0000
commit2843fdaab1bfef475382e13acfd6651bc4ae9e32 (patch)
tree1452da9ced8a1f64adb4a6c2cb6eeadb04018828 /ld/testsuite/ld-powerpc/powerpc.exp
parent8c5eb9cdcf81e21cf40255e3f86f67f456431f63 (diff)
downloadgdb-2843fdaab1bfef475382e13acfd6651bc4ae9e32.zip
gdb-2843fdaab1bfef475382e13acfd6651bc4ae9e32.tar.gz
gdb-2843fdaab1bfef475382e13acfd6651bc4ae9e32.tar.bz2
* ld-powerpc/tocopt2.s, * ld-powerpc/tocopt2.out,
* ld-powerpc/tocopt2.d: New test. * ld-powerpc/tocopt3.s, * ld-powerpc/tocopt3.d: New test. * ld-powerpc/powerpc.exp (ppc64elftests) Run them.
Diffstat (limited to 'ld/testsuite/ld-powerpc/powerpc.exp')
-rw-r--r--ld/testsuite/ld-powerpc/powerpc.exp6
1 files changed, 5 insertions, 1 deletions
diff --git a/ld/testsuite/ld-powerpc/powerpc.exp b/ld/testsuite/ld-powerpc/powerpc.exp
index ef0a6e1..bfffb42 100644
--- a/ld/testsuite/ld-powerpc/powerpc.exp
+++ b/ld/testsuite/ld-powerpc/powerpc.exp
@@ -204,7 +204,11 @@ set ppc64elftests {
{"sym@tocbase" "-shared -melf64ppc" "-a64" {symtocbase-1.s symtocbase-2.s}
{{objdump -dj.data symtocbase.d}} "symtocbase.so"}
{"TOC opt" "-melf64ppc" "-a64" {tocopt.s}
- {{objdump -s tocopt.d}} "tocopt"}
+ {{objdump -s tocopt.d}} "tocopt"}
+ {"TOC opt2" "-melf64ppc --defsym x=2" "-a64" {tocopt2.s}
+ {{ld tocopt2.out} {objdump -s tocopt2.d}} "tocopt2"}
+ {"TOC opt3" "-melf64ppc -no-keep-memory --defsym x=2" "-a64" {tocopt3.s}
+ {{objdump -s tocopt3.d}} "tocopt3"}
}