This is the mail archive of the binutils@sources.redhat.com mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [committed] MIPS gas dropping symbol offsets


Richard Sandiford <rsandifo@redhat.com> writes:
> Fixing this uncovered problems in the testsuite.  elf-rel-xgot-n32.d
> and elf-rel-xgot-n64.d were expecting:
> 
>         lw      $5,dl1+34($5)
> 
> to be assembled as:
> 
>         lw      $5,dl1($5)

Forgot about the ld/testsuite side.  Patch below installed as obvious.
Note that these tests still fail because of the unexpected .pdr section.

Richard


	* ld-mips-elf/elf-rel-xgot-n32.d: Fix offset for "lw $5,dl1+34($5)".
	* ld-mips-elf/elf-rel-xgot-n64-linux.d: Likewise.

Index: ld-mips-elf/elf-rel-xgot-n32.d
===================================================================
RCS file: /cvs/src/src/ld/testsuite/ld-mips-elf/elf-rel-xgot-n32.d,v
retrieving revision 1.2
diff -u -p -F^\([(a-zA-Z0-9_]\|#define\) -r1.2 elf-rel-xgot-n32.d
--- ld-mips-elf/elf-rel-xgot-n32.d	21 Jun 2003 21:38:04 -0000	1.2
+++ ld-mips-elf/elf-rel-xgot-n32.d	7 Dec 2003 21:46:38 -0000
@@ -304,7 +304,7 @@ 1000052c:	00b12821 	addu	a1,a1,s1
 10000530:	8ca50780 	lw	a1,1920\(a1\)
 10000534:	8f818018 	lw	at,-32744\(gp\)
 10000538:	00250821 	addu	at,at,a1
-1000053c:	8c250774 	lw	a1,1908\(at\)
+1000053c:	8c250796 	lw	a1,1942\(at\)
 10000540:	8f818018 	lw	at,-32744\(gp\)
 10000544:	00250821 	addu	at,at,a1
 10000548:	ac2507ac 	sw	a1,1964\(at\)
Index: ld-mips-elf/elf-rel-xgot-n64-linux.d
===================================================================
RCS file: /cvs/src/src/ld/testsuite/ld-mips-elf/elf-rel-xgot-n64-linux.d,v
retrieving revision 1.1
diff -u -p -F^\([(a-zA-Z0-9_]\|#define\) -r1.1 elf-rel-xgot-n64-linux.d
--- ld-mips-elf/elf-rel-xgot-n64-linux.d	12 Jun 2003 17:07:14 -0000	1.1
+++ ld-mips-elf/elf-rel-xgot-n64-linux.d	7 Dec 2003 21:46:38 -0000
@@ -313,7 +313,7 @@ 00000001200000e0 <fn>:
    120000570:	dca507a0 	ld	a1,1952\(a1\)
    120000574:	df818020 	ld	at,-32736\(gp\)
    120000578:	0025082d 	daddu	at,at,a1
-   12000057c:	dc250794 	ld	a1,1940\(at\)
+   12000057c:	dc2507b6 	ld	a1,1974\(at\)
    120000580:	df818020 	ld	at,-32736\(gp\)
    120000584:	0025082d 	daddu	at,at,a1
    120000588:	fc2507cc 	sd	a1,1996\(at\)


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]