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]

Update ARM linker tests


Recent hashing and empty section changes broke the ARM linker tests.
Updated as attached.

-- 
Daniel Jacobowitz
CodeSourcery

2006-11-13  Daniel Jacobowitz  <dan@codesourcery.com>

	* ld-arm/arm-dyn.ld, ld-arm/arm-lib.ld: Remove .stack.
	* ld-arm/armthumb-lib.d, ld-arm/mixed-app.d, ld-arm/mixed-lib.d:
	Allow smaller section gap.
	* ld-arm/armthumb-lib.sym, ld-arm/mixed-lib.sym: Reorder.  Remove
	_stack.
	* ld-arm/mixed-app.sym: Remove _stack.
	* ld-arm/tls-app.d: Update start address.

Index: ld/testsuite/ld-arm/arm-dyn.ld
===================================================================
RCS file: /cvs/src/src/ld/testsuite/ld-arm/arm-dyn.ld,v
retrieving revision 1.2
diff -u -p -r1.2 arm-dyn.ld
--- ld/testsuite/ld-arm/arm-dyn.ld	29 Mar 2005 16:54:22 -0000	1.2
+++ ld/testsuite/ld-arm/arm-dyn.ld	13 Nov 2006 21:14:45 -0000
@@ -187,11 +187,6 @@ SECTIONS
   .debug_funcnames 0 : { *(.debug_funcnames) }
   .debug_typenames 0 : { *(.debug_typenames) }
   .debug_varnames  0 : { *(.debug_varnames) }
-    .stack         0x80000 :
-  {
-    _stack = .;
-    *(.stack)
-  }
   .note.gnu.arm.ident 0 : { KEEP (*(.note.gnu.arm.ident)) }
   /DISCARD/ : { *(.note.GNU-stack) }
 }
Index: ld/testsuite/ld-arm/arm-lib.ld
===================================================================
RCS file: /cvs/src/src/ld/testsuite/ld-arm/arm-lib.ld,v
retrieving revision 1.2
diff -u -p -r1.2 arm-lib.ld
--- ld/testsuite/ld-arm/arm-lib.ld	29 Mar 2005 16:54:22 -0000	1.2
+++ ld/testsuite/ld-arm/arm-lib.ld	13 Nov 2006 21:14:45 -0000
@@ -180,11 +180,6 @@ SECTIONS
   .debug_funcnames 0 : { *(.debug_funcnames) }
   .debug_typenames 0 : { *(.debug_typenames) }
   .debug_varnames  0 : { *(.debug_varnames) }
-    .stack         0x80000 :
-  {
-    _stack = .;
-    *(.stack)
-  }
   .note.gnu.arm.ident 0 : { KEEP (*(.note.gnu.arm.ident)) }
   /DISCARD/ : { *(.note.GNU-stack) }
 }
Index: ld/testsuite/ld-arm/armthumb-lib.d
===================================================================
RCS file: /cvs/src/src/ld/testsuite/ld-arm/armthumb-lib.d,v
retrieving revision 1.1
diff -u -p -r1.1 armthumb-lib.d
--- ld/testsuite/ld-arm/armthumb-lib.d	18 Aug 2006 15:00:18 -0000	1.1
+++ ld/testsuite/ld-arm/armthumb-lib.d	13 Nov 2006 21:14:45 -0000
@@ -20,7 +20,7 @@ Disassembly of section .text:
 .* <lib_func1>:
  .*:	e1a0c00d 	mov	ip, sp
  .*:	e92dd800 	stmdb	sp!, {fp, ip, lr, pc}
- .*:	ebfffff. 	bl	.* <.text-0x..>
+ .*:	ebfffff. 	bl	.* <.text-0x..?>
  .*:	e89d6800 	ldmia	sp, {fp, sp, lr}
  .*:	e12fff1e 	bx	lr
  .*:	e1a00000 	nop			\(mov r0,r0\)
@@ -38,7 +38,7 @@ Disassembly of section .text:
  .*:	46c0      	nop			\(mov r8, r8\)
 
 .* <lib_func2>:
- .*:	e59fc004 	ldr	ip, \[pc, #4\]	; 33c <lib_func2\+0xc>
+ .*:	e59fc004 	ldr	ip, \[pc, #4\]	; .* <lib_func2\+0xc>
  .*:	e08cc00f 	add	ip, ip, pc
  .*:	e12fff1c 	bx	ip
  .*:	ffffffe5 	.*
Index: ld/testsuite/ld-arm/armthumb-lib.sym
===================================================================
RCS file: /cvs/src/src/ld/testsuite/ld-arm/armthumb-lib.sym,v
retrieving revision 1.1
diff -u -p -r1.1 armthumb-lib.sym
--- ld/testsuite/ld-arm/armthumb-lib.sym	18 Aug 2006 15:00:18 -0000	1.1
+++ ld/testsuite/ld-arm/armthumb-lib.sym	13 Nov 2006 21:14:45 -0000
@@ -2,17 +2,16 @@
 Symbol table for image:
   Num Buc:    Value  Size   Type   Bind Vis      Ndx Name
    ..  ..: ........     0  NOTYPE GLOBAL DEFAULT ABS _edata
-   ..  ..: .......0    20    FUNC GLOBAL DEFAULT   6 lib_func1
-   ..  ..: .......0     2    FUNC GLOBAL DEFAULT   6 lib_func2
-   ..  ..: ........     0  NOTYPE GLOBAL DEFAULT ABS _bss_end__
-   ..  ..: ........     0  NOTYPE GLOBAL DEFAULT ABS __bss_end__
-   ..  ..: ........     0  NOTYPE GLOBAL DEFAULT ABS _stack
-   ..  ..: ........     4  OBJECT GLOBAL DEFAULT   9 data_obj
    ..  ..: ........     0  NOTYPE GLOBAL DEFAULT ABS __bss_start__
-   ..  ..: ........     0  NOTYPE GLOBAL DEFAULT ABS __bss_start
    ..  ..: ........     0  NOTYPE GLOBAL DEFAULT ABS _end
-   ..  ..: 00000000     0  NOTYPE GLOBAL DEFAULT UND app_func2
-   ..  ..: ........     0  NOTYPE GLOBAL DEFAULT ABS __exidx_end
+   ..  ..: ........     4  OBJECT GLOBAL DEFAULT   9 data_obj
+   ..  ..: ........     0  NOTYPE GLOBAL DEFAULT ABS __bss_end__
+   ..  ..: .......0    20    FUNC GLOBAL DEFAULT   6 lib_func1
+   ..  ..: ........     0  NOTYPE GLOBAL DEFAULT ABS __exidx_start
    ..  ..: ........     0  NOTYPE GLOBAL DEFAULT   9 __data_start
    ..  ..: ........     0  NOTYPE GLOBAL DEFAULT ABS __end__
-   ..  ..: ........     0  NOTYPE GLOBAL DEFAULT ABS __exidx_start
+   ..  ..: ........     0  NOTYPE GLOBAL DEFAULT ABS __bss_start
+   ..  ..: 00000000     0  NOTYPE GLOBAL DEFAULT UND app_func2
+   ..  ..: .......0     2    FUNC GLOBAL DEFAULT   6 lib_func2
+   ..  ..: ........     0  NOTYPE GLOBAL DEFAULT ABS _bss_end__
+   ..  ..: ........     0  NOTYPE GLOBAL DEFAULT ABS __exidx_end
Index: ld/testsuite/ld-arm/mixed-app.d
===================================================================
RCS file: /cvs/src/src/ld/testsuite/ld-arm/mixed-app.d,v
retrieving revision 1.5
diff -u -p -r1.5 mixed-app.d
--- ld/testsuite/ld-arm/mixed-app.d	24 May 2006 17:10:02 -0000	1.5
+++ ld/testsuite/ld-arm/mixed-app.d	13 Nov 2006 21:14:45 -0000
@@ -34,7 +34,7 @@ Disassembly of section .text:
 .* <app_func>:
  .*:	e1a0c00d 	mov	ip, sp
  .*:	e92dd800 	stmdb	sp!, {fp, ip, lr, pc}
- .*:	ebfffff. 	bl	.*
+ .*:	ebffff.. 	bl	.*
  .*:	e89d6800 	ldmia	sp, {fp, sp, lr}
  .*:	e12fff1e 	bx	lr
  .*:	e1a00000 	nop			\(mov r0,r0\)
Index: ld/testsuite/ld-arm/mixed-app.sym
===================================================================
RCS file: /cvs/src/src/ld/testsuite/ld-arm/mixed-app.sym,v
retrieving revision 1.4
diff -u -p -r1.4 mixed-app.sym
--- ld/testsuite/ld-arm/mixed-app.sym	17 Oct 2006 13:41:48 -0000	1.4
+++ ld/testsuite/ld-arm/mixed-app.sym	13 Nov 2006 21:14:45 -0000
@@ -9,7 +9,6 @@ Symbol table for image:
    ..  ..: 0*[^0]*.*   20    FUNC GLOBAL DEFAULT UND lib_func1
    ..  ..: ........     0  NOTYPE GLOBAL DEFAULT ABS __exidx_start
    ..  ..: ........     0  NOTYPE GLOBAL DEFAULT  11 __data_start
-   ..  ..: ........     0  NOTYPE GLOBAL DEFAULT  12 _stack
    ..  ..: ........     0  NOTYPE GLOBAL DEFAULT ABS __end__
    ..  ..: ........     0  NOTYPE GLOBAL DEFAULT ABS __bss_start
    ..  ..: .......0     0    FUNC GLOBAL DEFAULT   8 app_func2
Index: ld/testsuite/ld-arm/mixed-lib.d
===================================================================
RCS file: /cvs/src/src/ld/testsuite/ld-arm/mixed-lib.d,v
retrieving revision 1.2
diff -u -p -r1.2 mixed-lib.d
--- ld/testsuite/ld-arm/mixed-lib.d	24 May 2006 17:10:02 -0000	1.2
+++ ld/testsuite/ld-arm/mixed-lib.d	13 Nov 2006 21:14:45 -0000
@@ -20,7 +20,7 @@ Disassembly of section .text:
 .* <lib_func1>:
  .*:	e1a0c00d 	mov	ip, sp
  .*:	e92dd800 	stmdb	sp!, {fp, ip, lr, pc}
- .*:	ebfffff. 	bl	.* <.text-0x..>
+ .*:	ebfffff. 	bl	.* <.text-0x..?>
  .*:	e89d6800 	ldmia	sp, {fp, sp, lr}
  .*:	e12fff1e 	bx	lr
  .*:	e1a00000 	nop			\(mov r0,r0\)
Index: ld/testsuite/ld-arm/mixed-lib.sym
===================================================================
RCS file: /cvs/src/src/ld/testsuite/ld-arm/mixed-lib.sym,v
retrieving revision 1.5
diff -u -p -r1.5 mixed-lib.sym
--- ld/testsuite/ld-arm/mixed-lib.sym	15 Aug 2005 15:39:44 -0000	1.5
+++ ld/testsuite/ld-arm/mixed-lib.sym	13 Nov 2006 21:14:45 -0000
@@ -2,17 +2,16 @@
 Symbol table for image:
   Num Buc:    Value  Size   Type   Bind Vis      Ndx Name
    ..  ..: ........     0  NOTYPE GLOBAL DEFAULT ABS _edata
-   ..  ..: .......0    20    FUNC GLOBAL DEFAULT   6 lib_func1
-   ..  ..: .......1     2    FUNC GLOBAL DEFAULT   6 lib_func2
-   ..  ..: ........     0  NOTYPE GLOBAL DEFAULT ABS _bss_end__
-   ..  ..: ........     0  NOTYPE GLOBAL DEFAULT ABS __bss_end__
-   ..  ..: ........     0  NOTYPE GLOBAL DEFAULT ABS _stack
-   ..  ..: ........     4  OBJECT GLOBAL DEFAULT   9 data_obj
    ..  ..: ........     0  NOTYPE GLOBAL DEFAULT ABS __bss_start__
-   ..  ..: ........     0  NOTYPE GLOBAL DEFAULT ABS __bss_start
    ..  ..: ........     0  NOTYPE GLOBAL DEFAULT ABS _end
-   ..  ..: 00000000     0  NOTYPE GLOBAL DEFAULT UND app_func2
-   ..  ..: ........     0  NOTYPE GLOBAL DEFAULT ABS __exidx_end
+   ..  ..: ........     4  OBJECT GLOBAL DEFAULT   9 data_obj
+   ..  ..: ........     0  NOTYPE GLOBAL DEFAULT ABS __bss_end__
+   ..  ..: .......0    20    FUNC GLOBAL DEFAULT   6 lib_func1
+   ..  ..: ........     0  NOTYPE GLOBAL DEFAULT ABS __exidx_start
    ..  ..: ........     0  NOTYPE GLOBAL DEFAULT   9 __data_start
    ..  ..: ........     0  NOTYPE GLOBAL DEFAULT ABS __end__
-   ..  ..: ........     0  NOTYPE GLOBAL DEFAULT ABS __exidx_start
+   ..  ..: ........     0  NOTYPE GLOBAL DEFAULT ABS __bss_start
+   ..  ..: 00000000     0  NOTYPE GLOBAL DEFAULT UND app_func2
+   ..  ..: .......1     2    FUNC GLOBAL DEFAULT   6 lib_func2
+   ..  ..: ........     0  NOTYPE GLOBAL DEFAULT ABS _bss_end__
+   ..  ..: ........     0  NOTYPE GLOBAL DEFAULT ABS __exidx_end
Index: ld/testsuite/ld-arm/tls-app.d
===================================================================
RCS file: /cvs/src/src/ld/testsuite/ld-arm/tls-app.d,v
retrieving revision 1.3
diff -u -p -r1.3 tls-app.d
--- ld/testsuite/ld-arm/tls-app.d	15 Aug 2005 15:39:44 -0000	1.3
+++ ld/testsuite/ld-arm/tls-app.d	13 Nov 2006 21:14:45 -0000
@@ -2,17 +2,17 @@
 .*:     file format elf32-.*arm
 architecture: arm, flags 0x00000112:
 EXEC_P, HAS_SYMS, D_PAGED
-start address 0x00008220
+start address 0x00008204
 
 Disassembly of section .text:
 
-00008220 <foo>:
-    8220:	e1a00000 	nop			\(mov r0,r0\)
-    8224:	e1a00000 	nop			\(mov r0,r0\)
-    8228:	e1a0f00e 	mov	pc, lr
-    822c:	000080bc 	streqh	r8, \[r0\], -ip
-    8230:	000080b4 	streqh	r8, \[r0\], -r4
-    8234:	000080ac 	andeq	r8, r0, ip, lsr #1
-    8238:	00000004 	andeq	r0, r0, r4
-    823c:	000080c4 	andeq	r8, r0, r4, asr #1
-    8240:	00000014 	andeq	r0, r0, r4, lsl r0
+00008204 <foo>:
+    8204:	e1a00000 	nop			\(mov r0,r0\)
+    8208:	e1a00000 	nop			\(mov r0,r0\)
+    820c:	e1a0f00e 	mov	pc, lr
+    8210:	000080bc 	streqh	r8, \[r0\], -ip
+    8214:	000080b4 	streqh	r8, \[r0\], -r4
+    8218:	000080ac 	andeq	r8, r0, ip, lsr #1
+    821c:	00000004 	andeq	r0, r0, r4
+    8220:	000080c4 	andeq	r8, r0, r4, asr #1
+    8224:	00000014 	andeq	r0, r0, r4, lsl r0


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