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]

[RFA:] Fallout from warnings being properly diagnosed as such in ld testsuite


A bit on the obvious side, perhaps.  An alternative would have
been to adjust so that "warning:" without a dump program was ok,
but then the dump in run_dump_test would be confusing, and
supposedly the integrity of the linked file needs checking.

Ok to commit?

	* ld-discard/extern.d, ld-discard/start.d, ld-discard/static.d:
	Adjust for being identified as warnings.

Index: ld-discard/extern.d
===================================================================
RCS file: /cvs/src/src/ld/testsuite/ld-discard/extern.d,v
retrieving revision 1.6
diff -c -p -r1.6 extern.d
*** ld-discard/extern.d	1 Jul 2004 13:48:53 -0000	1.6
--- ld-discard/extern.d	6 Feb 2005 14:16:29 -0000
***************
*** 1,3 ****
  #source: extern.s
  #ld: -T discard.ld
! #error: `data' referenced in section `\.text' of tmpdir/dump0.o: defined in discarded section `\.data\.exit' of tmpdir/dump0.o
--- 1,5 ----
  #source: extern.s
  #ld: -T discard.ld
! #warning: `data' referenced in section `\.text' of tmpdir/dump0.o: defined in discarded section `\.data\.exit' of tmpdir/dump0.o
! #objdump: -p
! #pass
Index: ld-discard/start.d
===================================================================
RCS file: /cvs/src/src/ld/testsuite/ld-discard/start.d,v
retrieving revision 1.5
diff -c -p -r1.5 start.d
*** ld-discard/start.d	1 Jul 2004 13:48:53 -0000	1.5
--- ld-discard/start.d	6 Feb 2005 14:16:29 -0000
***************
*** 1,4 ****
  #source: start.s
  #source: exit.s
  #ld: -T discard.ld
! #error: `data' referenced in section `\.text' of tmpdir/dump0.o: defined in discarded section `\.data\.exit' of tmpdir/dump1.o
--- 1,6 ----
  #source: start.s
  #source: exit.s
  #ld: -T discard.ld
! #warning: `data' referenced in section `\.text' of tmpdir/dump0.o: defined in discarded section `\.data\.exit' of tmpdir/dump1.o
! #objdump: -p
! #pass
Index: ld-discard/static.d
===================================================================
RCS file: /cvs/src/src/ld/testsuite/ld-discard/static.d,v
retrieving revision 1.6
diff -c -p -r1.6 static.d
*** ld-discard/static.d	2 Jul 2004 06:46:17 -0000	1.6
--- ld-discard/static.d	6 Feb 2005 14:16:29 -0000
***************
*** 1,3 ****
  #source: static.s
  #ld: -T discard.ld
! #error: `(\.data\.exit|data)' referenced in section `\.text' of tmpdir/dump0.o: defined in discarded section `\.data\.exit' of tmpdir/dump0.o
--- 1,5 ----
  #source: static.s
  #ld: -T discard.ld
! #warning: `(\.data\.exit|data)' referenced in section `\.text' of tmpdir/dump0.o: defined in discarded section `\.data\.exit' of tmpdir/dump0.o
! #objdump: -p
! #pass

brgds, H-P


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