aboutsummaryrefslogtreecommitdiff
path: root/ld/testsuite/ld-mips-elf/elf-rel-xgot-n64-linux.d
diff options
context:
space:
mode:
authorRichard Sandiford <rdsandiford@googlemail.com>2004-02-17 10:19:24 +0000
committerRichard Sandiford <rdsandiford@googlemail.com>2004-02-17 10:19:24 +0000
commitd25aed713b6b953317601bf93df7a9a14cb39031 (patch)
tree346c710199e44f71d0990604f017664836d48344 /ld/testsuite/ld-mips-elf/elf-rel-xgot-n64-linux.d
parentf937530551ba8561aed3e15538bb1803e99f2ee8 (diff)
downloadgdb-d25aed713b6b953317601bf93df7a9a14cb39031.zip
gdb-d25aed713b6b953317601bf93df7a9a14cb39031.tar.gz
gdb-d25aed713b6b953317601bf93df7a9a14cb39031.tar.bz2
bfd/
* elfxx-mips.c (mips_elf_calculate_relocation): Use _bfd_elf_symbol_refs_local_p to decide whether to decay a GOT_PAGE/GOT_OFST pair to GOT_DISP/addend. (_bfd_mips_elf_check_relocs): Add a global GOT entry for GOT_PAGE relocs if the symbol wasn't defined by a regular object file. Don't check the symbol's dynindx. ld/testsuite/ * ld-mips/elf/elf-rel-xgot-{n32,n64-linux}.d: Update after 2004-02-02 changes to the way large constants are added. * ld-mips/elf/elf-rel-got-{n32,n64-linux}.d: Likewise. Adjust order of GOT entries after today's change to the handling of GOT_PAGE relocations.
Diffstat (limited to 'ld/testsuite/ld-mips-elf/elf-rel-xgot-n64-linux.d')
-rw-r--r--ld/testsuite/ld-mips-elf/elf-rel-xgot-n64-linux.d17
1 files changed, 9 insertions, 8 deletions
diff --git a/ld/testsuite/ld-mips-elf/elf-rel-xgot-n64-linux.d b/ld/testsuite/ld-mips-elf/elf-rel-xgot-n64-linux.d
index 1424ecf..04c633b 100644
--- a/ld/testsuite/ld-mips-elf/elf-rel-xgot-n64-linux.d
+++ b/ld/testsuite/ld-mips-elf/elf-rel-xgot-n64-linux.d
@@ -28,8 +28,8 @@ Disassembly of section \.text:
1200000fc: 3c050000 lui a1,0x0
120000100: 00bc282d daddu a1,a1,gp
120000104: dca58058 ld a1,-32680\(a1\)
- 120000108: 3c010002 lui at,0x2
- 12000010c: 6421e240 daddiu at,at,-7616
+ 120000108: 3c010001 lui at,0x1
+ 12000010c: 3421e240 ori at,at,0xe240
120000110: 00a1282d daddu a1,a1,at
120000114: 3c050000 lui a1,0x0
120000118: 00bc282d daddu a1,a1,gp
@@ -43,8 +43,8 @@ Disassembly of section \.text:
120000138: 3c050000 lui a1,0x0
12000013c: 00bc282d daddu a1,a1,gp
120000140: dca58058 ld a1,-32680\(a1\)
- 120000144: 3c010002 lui at,0x2
- 120000148: 6421e240 daddiu at,at,-7616
+ 120000144: 3c010001 lui at,0x1
+ 120000148: 3421e240 ori at,at,0xe240
12000014c: 00a1282d daddu a1,a1,at
120000150: 00b1282d daddu a1,a1,s1
120000154: 3c050000 lui a1,0x0
@@ -201,8 +201,8 @@ Disassembly of section \.text:
1200003b0: 3c050000 lui a1,0x0
1200003b4: 00bc282d daddu a1,a1,gp
1200003b8: dca58060 ld a1,-32672\(a1\)
- 1200003bc: 3c010002 lui at,0x2
- 1200003c0: 6421e240 daddiu at,at,-7616
+ 1200003bc: 3c010001 lui at,0x1
+ 1200003c0: 3421e240 ori at,at,0xe240
1200003c4: 00a1282d daddu a1,a1,at
1200003c8: 3c050000 lui a1,0x0
1200003cc: 00bc282d daddu a1,a1,gp
@@ -216,8 +216,8 @@ Disassembly of section \.text:
1200003ec: 3c050000 lui a1,0x0
1200003f0: 00bc282d daddu a1,a1,gp
1200003f4: dca58060 ld a1,-32672\(a1\)
- 1200003f8: 3c010002 lui at,0x2
- 1200003fc: 6421e240 daddiu at,at,-7616
+ 1200003f8: 3c010001 lui at,0x1
+ 1200003fc: 3421e240 ori at,at,0xe240
120000400: 00a1282d daddu a1,a1,at
120000404: 00b1282d daddu a1,a1,s1
120000408: 3c050000 lui a1,0x0
@@ -434,3 +434,4 @@ Disassembly of section \.got:
12010081c: 2010071c .*
120100820: 00000001 .*
120100824: 20100794 .*
+#pass