From 00de87cddb9276c8c22399790bd381b0559e673d Mon Sep 17 00:00:00 2001 From: Hans-Peter Nilsson Date: Mon, 7 Feb 2005 03:16:43 +0000 Subject: [PATCH] * ld-cris/globsymw2.s: New file. * ld-cris/warn3.d, ld-cris/warn4.d: New tests. --- ld/testsuite/ChangeLog | 3 +++ ld/testsuite/ld-cris/globsymw2.s | 16 ++++++++++++++++ ld/testsuite/ld-cris/warn3.d | 10 ++++++++++ ld/testsuite/ld-cris/warn4.d | 13 +++++++++++++ 4 files changed, 42 insertions(+) create mode 100644 ld/testsuite/ld-cris/globsymw2.s create mode 100644 ld/testsuite/ld-cris/warn3.d create mode 100644 ld/testsuite/ld-cris/warn4.d diff --git a/ld/testsuite/ChangeLog b/ld/testsuite/ChangeLog index 030c65f3eb2..c73d4a0cf24 100644 --- a/ld/testsuite/ChangeLog +++ b/ld/testsuite/ChangeLog @@ -1,5 +1,8 @@ 2005-02-07 Hans-Peter Nilsson + * ld-cris/globsymw2.s: New file. + * ld-cris/warn3.d, ld-cris/warn4.d: New tests. + * ld-discard/extern.d, ld-discard/start.d, ld-discard/static.d: Adjust for being identified as warnings. diff --git a/ld/testsuite/ld-cris/globsymw2.s b/ld/testsuite/ld-cris/globsymw2.s new file mode 100644 index 00000000000..a9e11ffb900 --- /dev/null +++ b/ld/testsuite/ld-cris/globsymw2.s @@ -0,0 +1,16 @@ + .text + .stabn 162,0,0,0 +;# A bit like globsymw1.s but containing a valid, working, stabs +;# symbol warning construct. + .stabs "isatty is not implemented and will always fail",30,0,0,0 + .stabs "globsym1",1,0,0,0 + .global globsym1 + .type globsym1, @function +globsym1: + .stabd 46,0,0 + .stabn 68,0,16,LM0-globsym1 +LM0: + .long 0 + .size globsym1, .-globsym1 + .stabs "",100,0,0,Letext0 +Letext0: diff --git a/ld/testsuite/ld-cris/warn3.d b/ld/testsuite/ld-cris/warn3.d new file mode 100644 index 00000000000..c01b6cb822e --- /dev/null +++ b/ld/testsuite/ld-cris/warn3.d @@ -0,0 +1,10 @@ +#source: start1.s +#source: globsym1ref.s +#source: globsymw2.s +#target: cris-*-*elf* cris-*-*aout* +#as: --em=crisaout +#ld: -mcrisaout +#warning: warning: isatty is not implemented and will always fail$ +#objdump: -p +.*: file format a\.out-cris +#pass diff --git a/ld/testsuite/ld-cris/warn4.d b/ld/testsuite/ld-cris/warn4.d new file mode 100644 index 00000000000..dc096b639fb --- /dev/null +++ b/ld/testsuite/ld-cris/warn4.d @@ -0,0 +1,13 @@ +#source: start1.s +#source: globsym1ref.s +#source: globsymw2.s +#target: cris-*-*elf* cris-*-*aout* +#as: --em=criself +#ld: -mcriself +#warning: warning: isatty is not implemented and will always fail$ +#objdump: -p +#xfail: *-*-* +# The test is xfailed because ELF stabs doesn't handle the stabs +# warning construct. +.*: file format elf32.*-cris +#pass -- 2.30.2