* powerpc.exp: Run it.
+2005-09-28 Alexandre Oliva <aoliva@redhat.com>
+
+ * symtocbase-1.s, symtocbase-2.s, symtocbase.d: New test.
+ * powerpc.exp: Run it.
+
2005-09-28 Jan Beulich <jbeulich@novell.com>
* ld-x86-64/tlspic.dd: Adjust.
{{readelf -WSsrl tlstocso.r} {objdump -dr tlstocso.d}
{objdump -sj.got tlstocso.g} {objdump -sj.tdata tlstocso.t}}
"tlstoc.so"}
+ {"sym@tocbase" "-shared -melf64ppc" "-a64" {symtocbase-1.s symtocbase-2.s}
+ {{objdump -dj.data symtocbase.d}} "symtocbase.so"}
}
--- /dev/null
+.section .toc,"aw",@progbits
+ .align 15
+ .globl x
+x: .quad .x,.x@tocbase,0
+.LCi: .quad i
+ .space 48 * 1024
+.data
+ .globl i
+i: .long 0
+.L1bases:
+ .quad .TOC.@tocbase
+ .quad .x@tocbase
+ .quad .y@tocbase
+.text
+ .globl .x
+.x:
+ ld 9,.LCi@toc(2)
+ blr
--- /dev/null
+.section .toc,"aw",@progbits
+ .align 15
+ .globl y
+y: .quad .y,.y@tocbase,0
+.LCi: .quad i
+ .space 48 * 1024
+.data
+.L2bases:
+ .quad .TOC.@tocbase
+ .quad .x@tocbase
+ .quad .y@tocbase
+.text
+ .globl .y
+.y:
+ ld 9,.LCi@toc(2)
+ blr
--- /dev/null
+#source: symtocbase-1.s
+#source: symtocbase-2.s
+#as: -a64
+#ld: -shared -melf64ppc
+#objdump: -dj.data
+#target: powerpc64*-*-*
+
+.*: file format elf64-powerpc
+
+Disassembly of section \.data:
+
+.* <i>:
+ \.\.\.
+.*: 00 02 00 00 \.long 0x20000
+.*: 00 00 00 00 \.long 0x0
+.*: 00 02 00 00 \.long 0x20000
+.*: 00 00 00 00 \.long 0x0
+.*: 00 03 00 00 \.long 0x30000
+.*: 00 00 00 00 \.long 0x0
+.*: 00 03 00 00 \.long 0x30000
+.*: 00 00 00 00 \.long 0x0
+.*: 00 02 00 00 \.long 0x20000
+.*: 00 00 00 00 \.long 0x0
+.*: 00 03 00 00 \.long 0x30000