PATCH: Update gas/mips/branch-misc-2.d
H. J. Lu
hjl@lucon.org
Sun Sep 29 15:29:00 GMT 2002
Hi Chris,
I believe it is ok to have R_MIPS_PC16 for gas/mips/branch-misc-2.s.
The problem is the mips gas doesn't generate the right addend for
R_MIPS_PC16. My hack:
http://sources.redhat.com/ml/binutils/2002-09/msg00665.html
seems to fix it. I'd like to modify gas/mips/branch-misc-2.d to allow
R_MIPS_PC16.
H.J.
-------------- next part --------------
2002-09-29 H.J. Lu <hjl@gnu.org>
* gas/mips/branch-misc-2.d: Updated.
--- gas/mips/branch-misc-2.d.reloc Wed Sep 18 21:47:04 2002
+++ gas/mips/branch-misc-2.d Sun Sep 29 14:51:04 2002
@@ -9,17 +9,23 @@ Disassembly of section .text:
\.\.\.
\.\.\.
\.\.\.
-0+003c <[^>]*> 0411fff0 bal 00000000 <g1>
+0+003c <[^>]*> 0411fffc bal 00000030 <g3\+0x8>
+[ ]*3c: R_MIPS_PC16 g1
0+0040 <[^>]*> 00000000 nop
-0+0044 <[^>]*> 0411fff3 bal 00000014 <g2>
+0+0044 <[^>]*> 0411fffc bal 00000038 <g3\+0x10>
+[ ]*44: R_MIPS_PC16 g2
0+0048 <[^>]*> 00000000 nop
-0+004c <[^>]*> 0411fff6 bal 00000028 <g3>
+0+004c <[^>]*> 0411fffc bal 00000040 <x\+0x4>
+[ ]*4c: R_MIPS_PC16 g3
0+0050 <[^>]*> 00000000 nop
-0+0054 <[^>]*> 0411000a bal 00000080 <g4>
+0+0054 <[^>]*> 0411fffc bal 00000048 <x\+0xc>
+[ ]*54: R_MIPS_PC16 g4
0+0058 <[^>]*> 00000000 nop
-0+005c <[^>]*> 0411000d bal 00000094 <g5>
+0+005c <[^>]*> 0411fffc bal 00000050 <x\+0x14>
+[ ]*5c: R_MIPS_PC16 g5
0+0060 <[^>]*> 00000000 nop
-0+0064 <[^>]*> 04110010 bal 000000a8 <g6>
+0+0064 <[^>]*> 0411fffc bal 00000058 <x\+0x1c>
+[ ]*64: R_MIPS_PC16 g6
0+0068 <[^>]*> 00000000 nop
\.\.\.
\.\.\.
More information about the Binutils
mailing list