public inbox for binutils@sourceware.org
 help / color / mirror / Atom feed
* powerpc-vxworks testsuite fixes
@ 2010-07-20  7:23 Alan Modra
  0 siblings, 0 replies; only message in thread
From: Alan Modra @ 2010-07-20  7:23 UTC (permalink / raw)
  To: binutils

My 2010-07-06 bfd/elf32-ppc.c relaxation change broke the powerpc
vxworks relax tests, and 2010-01-13 DJ Delorie ld/emultempl/elf32.em
the lib test.  Fixed as follows.

	* ld-powerpc/vxworks-relax.s: Add branches to match expected output.
	* ld-powerpc/vxworks-relax-2.s: Likewise.
	* ld-powerpc/vxworks1-lib.rd: Reorder reloc sections.

Index: ld/testsuite/ld-powerpc/vxworks-relax-2.s
===================================================================
RCS file: /cvs/src/src/ld/testsuite/ld-powerpc/vxworks-relax-2.s,v
retrieving revision 1.1
diff -u -p -r1.1 vxworks-relax-2.s
--- ld/testsuite/ld-powerpc/vxworks-relax-2.s	27 May 2009 13:31:24 -0000	1.1
+++ ld/testsuite/ld-powerpc/vxworks-relax-2.s	20 Jul 2010 07:05:25 -0000
@@ -4,11 +4,12 @@ _start:
 	lis 9,elsewhere@ha
         la 0,elsewhere@l(9)
 	bl	undefined
-
+	b	.
 
 	.section .far,"ax",@progbits
 elsewhere:
 	bl	_start
+	b	.
 
 	.section .pad
 	.space 0x4000000
Index: ld/testsuite/ld-powerpc/vxworks-relax.s
===================================================================
RCS file: /cvs/src/src/ld/testsuite/ld-powerpc/vxworks-relax.s,v
retrieving revision 1.1
diff -u -p -r1.1 vxworks-relax.s
--- ld/testsuite/ld-powerpc/vxworks-relax.s	26 Jan 2009 15:27:04 -0000	1.1
+++ ld/testsuite/ld-powerpc/vxworks-relax.s	20 Jul 2010 07:05:25 -0000
@@ -3,11 +3,12 @@ _start:
 	bl	elsewhere
 	lis 9,elsewhere@ha
         la 0,elsewhere@l(9)
-
+	b	.
 
 	.section .far,"ax",@progbits
 elsewhere:
 	bl	_start
+	b	.
 
 	.section .pad
 	.space 0x4000000
Index: ld/testsuite/ld-powerpc/vxworks1-lib.rd
===================================================================
RCS file: /cvs/src/src/ld/testsuite/ld-powerpc/vxworks1-lib.rd,v
retrieving revision 1.5
diff -u -p -r1.5 vxworks1-lib.rd
--- ld/testsuite/ld-powerpc/vxworks1-lib.rd	3 Oct 2008 13:03:37 -0000	1.5
+++ ld/testsuite/ld-powerpc/vxworks1-lib.rd	20 Jul 2010 07:05:25 -0000
@@ -1,4 +1,9 @@
 
+Relocation section '\.rela\.plt' at offset .* contains 2 entries:
+ Offset     Info    Type            Sym\.Value  Sym\. Name \+ Addend
+0009040c  .*15 R_PPC_JMP_SLOT    00000000   sexternal \+ 0
+00090410  .*15 R_PPC_JMP_SLOT    00080c48   sglobal \+ 0
+
 Relocation section '\.rela\.dyn' at offset .* contains 5 entries:
  Offset     Info    Type            Sym\.Value  Sym\. Name \+ Addend
 00090800  00000016 R_PPC_RELATIVE * 00080c44
@@ -6,8 +11,3 @@ Relocation section '\.rela\.dyn' at offs
 00080c12  .*04 R_PPC_ADDR16_LO   00000000   __GOTT_BASE__ \+ 0
 00080c16  .*03 R_PPC_ADDR16      00000000   __GOTT_INDEX__ \+ 0
 00090414  .*14 R_PPC_GLOB_DAT    00090c00   x \+ 0
-
-Relocation section '\.rela\.plt' at offset .* contains 2 entries:
- Offset     Info    Type            Sym\.Value  Sym\. Name \+ Addend
-0009040c  .*15 R_PPC_JMP_SLOT    00000000   sexternal \+ 0
-00090410  .*15 R_PPC_JMP_SLOT    00080c48   sglobal \+ 0

-- 
Alan Modra
Australia Development Lab, IBM

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2010-07-20  7:23 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-07-20  7:23 powerpc-vxworks testsuite fixes Alan Modra

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).