This is the mail archive of the binutils@sourceware.org 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]

Committed: a few ld-cris testsuite fixes


The register prefix is always optional, better put it there to
make the file re-usable without special assembler options.  The
".size label1,label2-label1" is easy to get wrong or forgetting
to adjust the used label names when copy-pasting ELF function
decorations and adjusting manually; finally fixed.  Committed.

ld/testsuite:

	* ld-cris/start1.s: Prepend register name with $.

	* ld-cris/dso-1.s, ld-cris/libdso-1.d, ld-cris/libdso-11.d,
	ld-cris/libdso-2.d, ld-cris/pv32.s, ld-cris/undef1.d: Correct
	.size expressions and adjust expected output accordingly.

Index: ld-cris/dso-1.s
===================================================================
RCS file: /cvs/src/src/ld/testsuite/ld-cris/dso-1.s,v
retrieving revision 1.2
diff -p -u -r1.2 dso-1.s
--- ld-cris/dso-1.s	16 Aug 2005 15:13:29 -0000	1.2
+++ ld-cris/dso-1.s	25 Nov 2008 02:07:00 -0000
@@ -4,5 +4,5 @@
 	.p2align 1
 dsofn:
 	nop
-.Lfe:
+.Lfe1:
 	.size	dsofn,.Lfe1-dsofn
Index: ld-cris/libdso-1.d
===================================================================
RCS file: /cvs/src/src/ld/testsuite/ld-cris/libdso-1.d,v
retrieving revision 1.5
diff -p -u -r1.5 libdso-1.d
--- ld-cris/libdso-1.d	8 Mar 2005 02:31:40 -0000	1.5
+++ ld-cris/libdso-1.d	25 Nov 2008 02:07:00 -0000
@@ -9,5 +9,5 @@
 
 DYNAMIC SYMBOL TABLE:
 #...
-00000[12].[02468ace] g    DF .text	00000000 dsofn
+00000[12].[02468ace] g    DF .text	0+2 dsofn
 #pass
Index: ld-cris/libdso-11.d
===================================================================
RCS file: /cvs/src/src/ld/testsuite/ld-cris/libdso-11.d,v
retrieving revision 1.5
diff -p -u -r1.5 libdso-11.d
--- ld-cris/libdso-11.d	15 Aug 2005 15:39:45 -0000	1.5
+++ ld-cris/libdso-11.d	25 Nov 2008 02:07:00 -0000
@@ -10,7 +10,7 @@ DYNAMIC SYMBOL TABLE:
 #...
 0+1a0 g    DF \.text	0+8 dsofn3
 #...
-0+19c g    DF \.text	0+ dsofn
+0+19c g    DF \.text	0+2 dsofn
 #...
 Contents of section \.rela\.plt:
  015c 2c220000 0b060000 00000000           .*
Index: ld-cris/libdso-2.d
===================================================================
RCS file: /cvs/src/src/ld/testsuite/ld-cris/libdso-2.d,v
retrieving revision 1.14
diff -p -u -r1.14 libdso-2.d
--- ld-cris/libdso-2.d	11 Jul 2006 21:47:41 -0000	1.14
+++ ld-cris/libdso-2.d	25 Nov 2008 02:07:00 -0000
@@ -53,6 +53,6 @@ Symbol table '\.symtab' contains 18 entr
     12: 0+2..[046c]     0 NOTYPE  LOCAL  DEFAULT  ABS _edata
     13: 0+2..[046c]     0 OBJECT  LOCAL  HIDDEN  ABS _GLOBAL_OFFSET_TABLE_
     14: 0+2..[046c]     0 NOTYPE  LOCAL  DEFAULT  ABS _end
-    15: 0+150     0 FUNC    LOCAL  DEFAULT    7 dsofn
+    15: 0+150     2 FUNC    LOCAL  DEFAULT    7 dsofn
     16: 0+     0 OBJECT  GLOBAL DEFAULT  ABS TST1
     17: 0+154     0 FUNC    GLOBAL DEFAULT    7 export_1
Index: ld-cris/pv32.s
===================================================================
RCS file: /cvs/src/src/ld/testsuite/ld-cris/pv32.s,v
retrieving revision 1.3
diff -p -u -r1.3 pv32.s
--- ld-cris/pv32.s	12 Aug 2005 00:23:48 -0000	1.3
+++ ld-cris/pv32.s	25 Nov 2008 02:07:00 -0000
@@ -3,7 +3,7 @@
 here:
 	nop
 .Lfe3:
-	.size	here,.Lfe3-dsofn
+	.size	here,.Lfe3-here
 
 	.type	pfn,@function
 pfn:
Index: ld-cris/start1.s
===================================================================
RCS file: /cvs/src/src/ld/testsuite/ld-cris/start1.s,v
retrieving revision 1.1
diff -p -u -r1.1 start1.s
--- ld-cris/start1.s	4 Nov 2004 15:04:05 -0000	1.1
+++ ld-cris/start1.s	25 Nov 2008 02:07:00 -0000
@@ -1,5 +1,5 @@
  .global _start
 _start:
 ; This must be compilable with --march=common_v10_v32.
- moveq 1,r11
+ moveq 1,$r11
 
Index: ld-cris/undef1.d
===================================================================
RCS file: /cvs/src/src/ld/testsuite/ld-cris/undef1.d,v
retrieving revision 1.2
diff -p -u -r1.2 undef1.d
--- ld-cris/undef1.d	8 Mar 2005 02:31:40 -0000	1.2
+++ ld-cris/undef1.d	25 Nov 2008 02:07:00 -0000
@@ -9,5 +9,5 @@
 # symbol; no --export-dynamic is supposed to be needed.
 
 #...
-[0-9a-f]+ g    DF .text	00000000 dsofn
+[0-9a-f]+ g    DF .text	0+2 dsofn
 #pass

brgds, H-P


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