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]

Committed, MMIX: Tweaks to ld testsuite.


Several tweaks needed for various recent changes.  First, some
unnecessary "*ABS*"-symbols are now omitted.  Great.  Second,
now objdump special-cases the absence of symbols in a different
way, by outputting "no symbols" instead of just no "SYMBOL
TABLE:".  Oh well.  Third, gas emits a .debug_line section when
there's a .debug_info section.  I see in
dwarf2dbg.c:dwarf2_finish that it's deliberate and seemingly for
a reason.  Since the test is not specific to the .debug_info
section (it was just that the bug appeared with that section), I
changed the name of the section in the test.

	* ld-mmix/bpo-10.d: Tweak for change in symbols handling.
	* ld-mmix/bpo-11.d: Ditto.

	* ld-mmix/b-nosym.d: Adjust for changed output for absence of
	symbols.

	* ld-mmix/sec-7m.d: Rename tested section from .debug_info to
	.di.
	* ld-mmix/sec-7a.s, ld-mmix/sec-7b.s, ld-mmix/sec-7c.s,
	ld-mmix/sec-7d.s, ld-mmix/sec-7e.s: Ditto.

Index: b-nosym.d
===================================================================
RCS file: /cvs/src/src/ld/testsuite/ld-mmix/b-nosym.d,v
retrieving revision 1.5
diff -p -c -r1.5 b-nosym.d
*** b-nosym.d	26 Aug 2002 23:15:48 -0000	1.5
--- b-nosym.d	31 Aug 2002 17:16:03 -0000
***************
*** 11,15 ****
--- 11,18 ----

  .*:     file format mmo

+ SYMBOL TABLE:
+ no symbols
+
  Contents of section \.text:
   0000 e3fd0001 e3fd0004                    .*
Index: bpo-10.d
===================================================================
RCS file: /cvs/src/src/ld/testsuite/ld-mmix/bpo-10.d,v
retrieving revision 1.2
diff -p -c -r1.2 bpo-10.d
*** bpo-10.d	19 Mar 2002 22:48:13 -0000	1.2
--- bpo-10.d	31 Aug 2002 17:16:03 -0000
*************** SYMBOL TABLE:
*** 19,26 ****
  0+ l    d  \*ABS\*	0+
  0+ l    d  \*ABS\*	0+
  0+ l       \.init	0+ _start
- 0+ g       \*ABS\*	0+
- 0+ g       \*ABS\*	0+
  2000000000000000 g       \*ABS\*	0+ __bss_start
  2000000000000000 g       \*ABS\*	0+ _edata
  2000000000000000 g       \*ABS\*	0+ _end
--- 19,24 ----
Index: bpo-11.d
===================================================================
RCS file: /cvs/src/src/ld/testsuite/ld-mmix/bpo-11.d,v
retrieving revision 1.2
diff -p -c -r1.2 bpo-11.d
*** bpo-11.d	19 Mar 2002 22:48:13 -0000	1.2
--- bpo-11.d	31 Aug 2002 17:16:03 -0000
*************** SYMBOL TABLE:
*** 23,29 ****
  0+14 g       \.text	0+ x
  0+10 g       \.text	0+ x2
  2000000000000000 g       \*ABS\*	0+ __bss_start
- 0+ g       \*ABS\*	0+
  2000000000000000 g       \*ABS\*	0+ _edata
  2000000000000000 g       \*ABS\*	0+ _end
  0+10 g       \.text	0+ _start\.
--- 23,28 ----
Index: sec-7a.s
===================================================================
RCS file: /cvs/src/src/ld/testsuite/ld-mmix/sec-7a.s,v
retrieving revision 1.1
diff -p -c -r1.1 sec-7a.s
*** sec-7a.s	17 Feb 2002 21:22:24 -0000	1.1
--- sec-7a.s	31 Aug 2002 17:16:04 -0000
***************
*** 1,4 ****
!  .section .debug_info
   .byte 42
   .rept 32763
   .byte 0
--- 1,4 ----
!  .section .di
   .byte 42
   .rept 32763
   .byte 0
Index: sec-7b.s
===================================================================
RCS file: /cvs/src/src/ld/testsuite/ld-mmix/sec-7b.s,v
retrieving revision 1.1
diff -p -c -r1.1 sec-7b.s
*** sec-7b.s	17 Feb 2002 21:22:24 -0000	1.1
--- sec-7b.s	31 Aug 2002 17:16:04 -0000
***************
*** 1,4 ****
!  .section .debug_info
   .byte 44
   .rept 32764
   .byte 0
--- 1,4 ----
!  .section .di
   .byte 44
   .rept 32764
   .byte 0
Index: sec-7c.s
===================================================================
RCS file: /cvs/src/src/ld/testsuite/ld-mmix/sec-7c.s,v
retrieving revision 1.1
diff -p -c -r1.1 sec-7c.s
*** sec-7c.s	17 Feb 2002 21:22:24 -0000	1.1
--- sec-7c.s	31 Aug 2002 17:16:04 -0000
***************
*** 1,4 ****
!  .section .debug_info
   .byte 46
   .rept 32765
   .byte 0
--- 1,4 ----
!  .section .di
   .byte 46
   .rept 32765
   .byte 0
Index: sec-7d.s
===================================================================
RCS file: /cvs/src/src/ld/testsuite/ld-mmix/sec-7d.s,v
retrieving revision 1.1
diff -p -c -r1.1 sec-7d.s
*** sec-7d.s	17 Feb 2002 21:22:24 -0000	1.1
--- sec-7d.s	31 Aug 2002 17:16:04 -0000
***************
*** 1,4 ****
!  .section .debug_info
   .byte 48
   .rept 32766
   .byte 0
--- 1,4 ----
!  .section .di
   .byte 48
   .rept 32766
   .byte 0
Index: sec-7e.s
===================================================================
RCS file: /cvs/src/src/ld/testsuite/ld-mmix/sec-7e.s,v
retrieving revision 1.1
diff -p -c -r1.1 sec-7e.s
*** sec-7e.s	17 Feb 2002 21:22:24 -0000	1.1
--- sec-7e.s	31 Aug 2002 17:16:04 -0000
***************
*** 1,4 ****
!  .section .debug_info
   .byte 50
   .rept 32767
   .byte 0
--- 1,4 ----
!  .section .di
   .byte 50
   .rept 32767
   .byte 0
Index: sec-7m.d
===================================================================
RCS file: /cvs/src/src/ld/testsuite/ld-mmix/sec-7m.d,v
retrieving revision 1.1
diff -p -c -r1.1 sec-7m.d
*** sec-7m.d	17 Feb 2002 21:22:24 -0000	1.1
--- sec-7m.d	31 Aug 2002 17:16:04 -0000
*************** Sections:
*** 20,30 ****
  Idx Name[ ]+Size[ ]+VMA[ ]+LMA[ ]+File off  Algn
    0 \.text[ ]+0+4  0+  0+  0+  2\*\*2
  [ ]+CONTENTS, ALLOC, LOAD, CODE
!   1 \.debug_info   0+27ffb  0+  0+  0+  2\*\*2
! [ ]+CONTENTS, READONLY, DEBUGGING
  Contents of section \.text:
   0000 e3fd0001[ ]+.*
! Contents of section \.debug_info:
   0000 2a000000 00000000 00000000 00000000  .*
  #...
   7ff0 00000000 00000000 00000000 2b2c0000  .*
--- 20,30 ----
  Idx Name[ ]+Size[ ]+VMA[ ]+LMA[ ]+File off  Algn
    0 \.text[ ]+0+4  0+  0+  0+  2\*\*2
  [ ]+CONTENTS, ALLOC, LOAD, CODE
!   1 \.di           0+27ffb  2000000000000000  2000000000000000  0+  2\*\*2
! [ ]+CONTENTS, READONLY
  Contents of section \.text:
   0000 e3fd0001[ ]+.*
! Contents of section \.di:
   0000 2a000000 00000000 00000000 00000000  .*
  #...
   7ff0 00000000 00000000 00000000 2b2c0000  .*

brgds, H-P


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