aboutsummaryrefslogtreecommitdiff
path: root/ld/testsuite/ld-mips-elf/no-shared-1-o32.d
diff options
context:
space:
mode:
authorRichard Sandiford <rdsandiford@googlemail.com>2008-07-10 19:06:54 +0000
committerRichard Sandiford <rdsandiford@googlemail.com>2008-07-10 19:06:54 +0000
commit0a61c8c283b8f3be8efc3816b84c88bc1962b04d (patch)
tree930ade3feb09e614c88aececb05df4607b0b0785 /ld/testsuite/ld-mips-elf/no-shared-1-o32.d
parent30c090907953c55bb80ec4af160054776d32303e (diff)
downloadgdb-0a61c8c283b8f3be8efc3816b84c88bc1962b04d.zip
gdb-0a61c8c283b8f3be8efc3816b84c88bc1962b04d.tar.gz
gdb-0a61c8c283b8f3be8efc3816b84c88bc1962b04d.tar.bz2
bfd/
* elfxx-mips.c (mips_elf_calculate_relocation): Calculate GP and GP0 for all relocation types. Allow any type of relocation to refer to __gnu_local_gp. ld/testsuite/ * ld-mips-elf/no-shared-1-o32.s, ld-mips-elf/no-shared-1-o32.d, ld-mips-elf/no-shared-1-n32.d, ld-mips-elf/no-shared-1-n64.s, ld-mips-elf/no-shared-1-n64.d, ld-mips-elf/no-shared-1.ld: New tests. * ld-mips-elf/mips-elf.exp: Run them.
Diffstat (limited to 'ld/testsuite/ld-mips-elf/no-shared-1-o32.d')
-rw-r--r--ld/testsuite/ld-mips-elf/no-shared-1-o32.d24
1 files changed, 24 insertions, 0 deletions
diff --git a/ld/testsuite/ld-mips-elf/no-shared-1-o32.d b/ld/testsuite/ld-mips-elf/no-shared-1-o32.d
new file mode 100644
index 0000000..b67737f
--- /dev/null
+++ b/ld/testsuite/ld-mips-elf/no-shared-1-o32.d
@@ -0,0 +1,24 @@
+#as: -mabi=32 -EB
+#ld: -melf32btsmip -T no-shared-1.ld
+#objdump: -dr -j.text -j.data -j.got
+
+.*
+
+
+Disassembly of section \.text:
+
+00050000 <__start>:
+ 50000: 3c020007 lui v0,0x7
+ 50004: 24428000 addiu v0,v0,-32768
+ 50008: 8f828018 lw v0,-32744\(gp\)
+ 5000c: 8f828018 lw v0,-32744\(gp\)
+#...
+Disassembly of section \.data:
+
+00060000 <\.data>:
+ 60000: 00068000 .*
+#...
+Disassembly of section \.got:
+
+00060010 <_GLOBAL_OFFSET_TABLE_>:
+ 60010: 00000000 80000000 00068000 .*