This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: [ppc] fix a couple of relax bugs
- From: Andreas Schwab <schwab at linux-m68k dot org>
- To: Nathan Sidwell <nathan at codesourcery dot com>
- Cc: binutils <binutils at sources dot redhat dot com>
- Date: Sun, 23 Aug 2009 11:44:01 +0200
- Subject: Re: [ppc] fix a couple of relax bugs
- References: <4A800BEB.7060303@codesourcery.com>
Nathan Sidwell <nathan@codesourcery.com> writes:
> tested on powerpc-elf, ok?
How did you test that?
Andreas.
2009-08-23 Andreas Schwab <schwab@linux-m68k.org>
* ld-powerpc/relax.d: Fix whitespace.
* ld-powerpc/relaxr.d: Likewise.
--- testsuite/ld-powerpc/relax.d.~1.1.~ 2009-08-10 15:38:44.000000000 +0200
+++ testsuite/ld-powerpc/relax.d 2009-08-23 11:23:29.000000000 +0200
@@ -4,12 +4,12 @@
Disassembly of section .text:
00000000 <_start>:
- 0: 48 00 43 21 bl 4320 <near>
- 4: 48 00 00 11 bl 14 <_start\+0x14>
- 8: 48 00 43 19 bl 4320 <near>
- c: 48 00 00 09 bl 14 <_start\+0x14>
- 10: 48 00 00 14 b 24 <.*>
- 14: 3d 80 80 00 lis r12,-32768
- 18: 39 8c 12 34 addi r12,r12,4660
- 1c: 7d 89 03 a6 mtctr r12
+ 0: 48 00 43 21 bl 4320 <near>
+ 4: 48 00 00 11 bl 14 <_start\+0x14>
+ 8: 48 00 43 19 bl 4320 <near>
+ c: 48 00 00 09 bl 14 <_start\+0x14>
+ 10: 48 00 00 14 b 24 <.*>
+ 14: 3d 80 80 00 lis r12,-32768
+ 18: 39 8c 12 34 addi r12,r12,4660
+ 1c: 7d 89 03 a6 mtctr r12
20: 4e 80 04 20 bctr
--- testsuite/ld-powerpc/relaxr.d.~1.1.~ 2009-08-10 15:38:44.000000000 +0200
+++ testsuite/ld-powerpc/relaxr.d 2009-08-23 11:24:03.000000000 +0200
@@ -4,22 +4,22 @@
Disassembly of section .text:
00000000 <_start>:
- 0: 48 00 00 15 bl 14 <_start\+0x14>
- 4: 48 00 00 21 bl 24 <_start\+0x24>
- 8: 48 00 00 0d bl 14 <_start\+0x14>
+ 0: 48 00 00 15 bl 14 <_start\+0x14>
+ 4: 48 00 00 21 bl 24 <_start\+0x24>
+ 8: 48 00 00 0d bl 14 <_start\+0x14>
8: R_PPC_NONE \*ABS\*
- c: 48 00 00 19 bl 24 <_start\+0x24>
+ c: 48 00 00 19 bl 24 <_start\+0x24>
c: R_PPC_NONE \*ABS\*
- 10: 48 00 00 24 b 34 <_start\+0x34>
- 14: 3d 80 00 00 lis r12,0
+ 10: 48 00 00 24 b 34 <_start\+0x34>
+ 14: 3d 80 00 00 lis r12,0
16: R_PPC_ADDR16_HA near
- 18: 39 8c 00 00 addi r12,r12,0
+ 18: 39 8c 00 00 addi r12,r12,0
1a: R_PPC_ADDR16_LO near
- 1c: 7d 89 03 a6 mtctr r12
+ 1c: 7d 89 03 a6 mtctr r12
20: 4e 80 04 20 bctr
- 24: 3d 80 00 00 lis r12,0
+ 24: 3d 80 00 00 lis r12,0
26: R_PPC_ADDR16_HA far
- 28: 39 8c 00 00 addi r12,r12,0
+ 28: 39 8c 00 00 addi r12,r12,0
2a: R_PPC_ADDR16_LO far
- 2c: 7d 89 03 a6 mtctr r12
+ 2c: 7d 89 03 a6 mtctr r12
30: 4e 80 04 20 bctr
--
Andreas Schwab, schwab@linux-m68k.org
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5
"And now for something completely different."