From 5c18022ec57b2c4ad4d94a76d8d9c8424253954a Mon Sep 17 00:00:00 2001 From: Richard Sandiford Date: Tue, 15 May 2007 12:18:53 +0000 Subject: bfd/ * elfxx-mips.c (mips_elf_create_local_got_entry): Remove input_section argument. Create .rela.dyn relocations against symbol 0 rather than the section symbol. (mips_elf_local_got_index): Remove input_section argument. Update call to mips_elf_create_local_got_entry. (mips_elf_got_page, mips_elf_got16_entry): Likewise. (mips_elf_calculate_relocation): Update calls to mips_elf_local_got_index, mips_elf_got16_entry and mips_elf_got_page. ld/testsuite/ * ld-mips-elf/vxworks1-lib.rd: Expect the GOT relocation to be against symbol 0. --- ld/testsuite/ChangeLog | 5 +++++ ld/testsuite/ld-mips-elf/vxworks1-lib.rd | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) (limited to 'ld') diff --git a/ld/testsuite/ChangeLog b/ld/testsuite/ChangeLog index 0f8e421..4214809 100644 --- a/ld/testsuite/ChangeLog +++ b/ld/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2007-05-15 Richard Sandiford + + * ld-mips-elf/vxworks1-lib.rd: Expect the GOT relocation to be + against symbol 0. + 2007-05-15 Mark Shinwell * ld-arm/arm-elf.exp: Add jump19 testcase. diff --git a/ld/testsuite/ld-mips-elf/vxworks1-lib.rd b/ld/testsuite/ld-mips-elf/vxworks1-lib.rd index 9a8b35e..225fdea 100644 --- a/ld/testsuite/ld-mips-elf/vxworks1-lib.rd +++ b/ld/testsuite/ld-mips-elf/vxworks1-lib.rd @@ -4,7 +4,7 @@ Relocation section '\.rela\.dyn' at offset .* contains .* entries: 00080c0c .*05 R_MIPS_HI16 00000000 __GOTT_BASE__ \+ 0 00080c10 .*06 R_MIPS_LO16 00000000 __GOTT_BASE__ \+ 0 00080c14 .*01 R_MIPS_16 00000000 __GOTT_INDEX__ \+ 0 -0008141c .*02 R_MIPS_32 00080c00 \.text \+ 5c +0008141c 00000002 R_MIPS_32 00080c5c 00081c00 00000002 R_MIPS_32 00080c5c 00081c04 00000002 R_MIPS_32 00081c00 00081c08 .*02 R_MIPS_32 00081c08 dglobal \+ 0 -- cgit v1.1