* 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.
This commit is contained in:
parent
8c5eb9cdcf
commit
2843fdaab1
@ -1,3 +1,10 @@
|
||||
2011-07-11 Alan Modra <amodra@gmail.com>
|
||||
|
||||
* 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.
|
||||
|
||||
2011-07-03 Samuel Thibault <samuel.thibault@gnu.org>
|
||||
Thomas Schwinge <thomas@schwinge.name>
|
||||
|
||||
|
@ -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"}
|
||||
}
|
||||
|
||||
|
||||
|
5
ld/testsuite/ld-powerpc/tocopt2.d
Normal file
5
ld/testsuite/ld-powerpc/tocopt2.d
Normal file
@ -0,0 +1,5 @@
|
||||
|
||||
.*: file format .*
|
||||
|
||||
Contents of section \.text:
|
||||
100000b0 3d22effe 39297f4a .*
|
1
ld/testsuite/ld-powerpc/tocopt2.out
Normal file
1
ld/testsuite/ld-powerpc/tocopt2.out
Normal file
@ -0,0 +1 @@
|
||||
.*: xt defined on removed toc entry
|
10
ld/testsuite/ld-powerpc/tocopt2.s
Normal file
10
ld/testsuite/ld-powerpc/tocopt2.s
Normal file
@ -0,0 +1,10 @@
|
||||
.globl xt
|
||||
.section .toc,"aw"
|
||||
xt:
|
||||
.quad x
|
||||
|
||||
.globl _start
|
||||
.text
|
||||
_start:
|
||||
addis 9,2,xt@toc@ha
|
||||
ld 9,xt@toc@l(9)
|
5
ld/testsuite/ld-powerpc/tocopt3.d
Normal file
5
ld/testsuite/ld-powerpc/tocopt3.d
Normal file
@ -0,0 +1,5 @@
|
||||
|
||||
.*: file format .*
|
||||
|
||||
Contents of section \.text:
|
||||
100000b0 3d22effe 39297f4a .*
|
9
ld/testsuite/ld-powerpc/tocopt3.s
Normal file
9
ld/testsuite/ld-powerpc/tocopt3.s
Normal file
@ -0,0 +1,9 @@
|
||||
.section .toc,"aw"
|
||||
0:
|
||||
.quad x
|
||||
|
||||
.globl _start
|
||||
.text
|
||||
_start:
|
||||
addis 9,2,0b@toc@ha
|
||||
ld 9,0b@toc@l(9)
|
Loading…
Reference in New Issue
Block a user