diff options
author | Richard Sandiford <rdsandiford@googlemail.com> | 2008-07-10 19:06:54 +0000 |
---|---|---|
committer | Richard Sandiford <rdsandiford@googlemail.com> | 2008-07-10 19:06:54 +0000 |
commit | 0a61c8c283b8f3be8efc3816b84c88bc1962b04d (patch) | |
tree | 930ade3feb09e614c88aececb05df4607b0b0785 /ld/testsuite/ld-mips-elf/mips-elf.exp | |
parent | 30c090907953c55bb80ec4af160054776d32303e (diff) | |
download | binutils-gdb-0a61c8c283b8f3be8efc3816b84c88bc1962b04d.tar.gz |
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/mips-elf.exp')
-rw-r--r-- | ld/testsuite/ld-mips-elf/mips-elf.exp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/ld/testsuite/ld-mips-elf/mips-elf.exp b/ld/testsuite/ld-mips-elf/mips-elf.exp index 86462f44481..80493e980ec 100644 --- a/ld/testsuite/ld-mips-elf/mips-elf.exp +++ b/ld/testsuite/ld-mips-elf/mips-elf.exp @@ -79,6 +79,15 @@ if { $linux_gnu } { run_dump_test "multi-got-hidden-2" } +# Test __gnu_local_gp accesses +if { $linux_gnu } { + run_dump_test "no-shared-1-o32" + if { $has_newabi } { + run_dump_test "no-shared-1-n32" + run_dump_test "no-shared-1-n64" + } +} + if $has_newabi { run_dump_test "elf-rel-got-n32" run_dump_test "elf-rel-xgot-n32" |