diff options
Diffstat (limited to 'ld/testsuite/ld-mips-elf')
-rw-r--r-- | ld/testsuite/ld-mips-elf/mips-elf.exp | 5 | ||||
-rw-r--r-- | ld/testsuite/ld-mips-elf/tls-hidden2-got.d | 6 | ||||
-rw-r--r-- | ld/testsuite/ld-mips-elf/tls-hidden2.d | 10 | ||||
-rw-r--r-- | ld/testsuite/ld-mips-elf/tls-hidden2a.s | 11 | ||||
-rw-r--r-- | ld/testsuite/ld-mips-elf/tls-hidden2b.s | 2 |
5 files changed, 34 insertions, 0 deletions
diff --git a/ld/testsuite/ld-mips-elf/mips-elf.exp b/ld/testsuite/ld-mips-elf/mips-elf.exp index 81f24b8..da278ae 100644 --- a/ld/testsuite/ld-mips-elf/mips-elf.exp +++ b/ld/testsuite/ld-mips-elf/mips-elf.exp @@ -162,6 +162,11 @@ set mips_tls_tests { "-EB -march=mips1 -32 -KPIC" {tlslib-o32.s} {{objdump {-dr -m mips:isa32r2} tlslib-o32.d} {objdump -Rsj.got tlslib-o32-hidden.got}} "tlslib-o32-hidden.so"} + {"Shared library with TLS and hidden symbols (2)" + "-shared -melf32btsmip -T mips-lib.ld" + "-EB -march=mips1 -32 -KPIC" {tls-hidden2a.s tls-hidden2b.s} + {{objdump -drj.text tls-hidden2.d} {objdump -sj.got tls-hidden2-got.d}} + "tls-hidden2.so"} } if {[istarget mips*-*-linux*]} { diff --git a/ld/testsuite/ld-mips-elf/tls-hidden2-got.d b/ld/testsuite/ld-mips-elf/tls-hidden2-got.d new file mode 100644 index 0000000..69c0982 --- /dev/null +++ b/ld/testsuite/ld-mips-elf/tls-hidden2-got.d @@ -0,0 +1,6 @@ + +.*file format.* + +Contents of section \.got: + *[0-9a-f]* 00000000 80000000 00000000 00000000 *\..* + *[0-9a-f]* 00000000 00000000 00000000 00000ba8 *\..* diff --git a/ld/testsuite/ld-mips-elf/tls-hidden2.d b/ld/testsuite/ld-mips-elf/tls-hidden2.d new file mode 100644 index 0000000..e6322ca --- /dev/null +++ b/ld/testsuite/ld-mips-elf/tls-hidden2.d @@ -0,0 +1,10 @@ + +.*file format.* + +Disassembly of section \.text: + +.* <.*>: +.*: 8f82802c * lw v0,-32724\(gp\) + \.\.\. +.*: 8f82802c * lw v0,-32724\(gp\) + \.\.\. diff --git a/ld/testsuite/ld-mips-elf/tls-hidden2a.s b/ld/testsuite/ld-mips-elf/tls-hidden2a.s new file mode 100644 index 0000000..91a0b9e --- /dev/null +++ b/ld/testsuite/ld-mips-elf/tls-hidden2a.s @@ -0,0 +1,11 @@ + .text + lw $2,%gottprel(tls_hidden)($28) + + .section .tdata,"awT" + .globl tls_hidden + .hidden tls_hidden + .type tls_hidden,@object + .size tls_hidden,4 + .space 0xba8 +tls_hidden: + .word 1 diff --git a/ld/testsuite/ld-mips-elf/tls-hidden2b.s b/ld/testsuite/ld-mips-elf/tls-hidden2b.s new file mode 100644 index 0000000..6a8e190 --- /dev/null +++ b/ld/testsuite/ld-mips-elf/tls-hidden2b.s @@ -0,0 +1,2 @@ + .text + lw $2,%gottprel(tls_hidden)($28) |