diff options
author | Hans-Peter Nilsson <hp@axis.com> | 2005-02-07 03:00:55 +0000 |
---|---|---|
committer | Hans-Peter Nilsson <hp@axis.com> | 2005-02-07 03:00:55 +0000 |
commit | 8537fc01f3ca1ff3503d1e4414c5c171ce9ba637 (patch) | |
tree | dccfb8f737f4928f9fdcddc19c892d60aa9ec503 /ld | |
parent | 9f400ee952afb0f7d1404a82628b4db6d8550d50 (diff) | |
download | gdb-8537fc01f3ca1ff3503d1e4414c5c171ce9ba637.zip gdb-8537fc01f3ca1ff3503d1e4414c5c171ce9ba637.tar.gz gdb-8537fc01f3ca1ff3503d1e4414c5c171ce9ba637.tar.bz2 |
* ld-cris/stabs1.s: New file.
* ld-cris/undef2.d, ld-cris/undef3.d: New tests.
Diffstat (limited to 'ld')
-rw-r--r-- | ld/testsuite/ld-cris/def2.d | 10 | ||||
-rw-r--r-- | ld/testsuite/ld-cris/def3.d | 10 | ||||
-rw-r--r-- | ld/testsuite/ld-cris/globsym1ref.s | 1 | ||||
-rw-r--r-- | ld/testsuite/ld-cris/globsymw1.s | 15 | ||||
-rw-r--r-- | ld/testsuite/ld-cris/warn1.d | 11 | ||||
-rw-r--r-- | ld/testsuite/ld-cris/warn2.d | 11 |
6 files changed, 58 insertions, 0 deletions
diff --git a/ld/testsuite/ld-cris/def2.d b/ld/testsuite/ld-cris/def2.d new file mode 100644 index 0000000..ff75d88 --- /dev/null +++ b/ld/testsuite/ld-cris/def2.d @@ -0,0 +1,10 @@ +#source: start1.s +#source: stabs1.s +#source: globsymw1.s +#target: cris-*-*elf* cris-*-*aout* +#as: --em=crisaout +#ld: -mcrisaout +#objdump: -p +# Just checking that undef2 links correctly when given a symbol. +.*: file format a\.out-cris +#pass diff --git a/ld/testsuite/ld-cris/def3.d b/ld/testsuite/ld-cris/def3.d new file mode 100644 index 0000000..e1ae3c5 --- /dev/null +++ b/ld/testsuite/ld-cris/def3.d @@ -0,0 +1,10 @@ +#source: start1.s +#source: stabs1.s +#source: globsymw1.s +#target: cris-*-*elf* cris-*-*aout* +#as: --em=criself +#ld: -mcriself +#objdump: -p +# Just checking that undef3 links correctly when given a symbol. +.*: file format elf32.*-cris +#pass diff --git a/ld/testsuite/ld-cris/globsym1ref.s b/ld/testsuite/ld-cris/globsym1ref.s new file mode 100644 index 0000000..03d4477 --- /dev/null +++ b/ld/testsuite/ld-cris/globsym1ref.s @@ -0,0 +1 @@ + .long globsym1 diff --git a/ld/testsuite/ld-cris/globsymw1.s b/ld/testsuite/ld-cris/globsymw1.s new file mode 100644 index 0000000..955014d --- /dev/null +++ b/ld/testsuite/ld-cris/globsymw1.s @@ -0,0 +1,15 @@ + .text + .stabn 162,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: +;# This must be the last line; the point is that the warning symbol +;# construct is last, but is missing the actual symbol warned about. + .stabs "isatty is not implemented and will always fail",30,0,0,0 diff --git a/ld/testsuite/ld-cris/warn1.d b/ld/testsuite/ld-cris/warn1.d new file mode 100644 index 0000000..ecdf19e --- /dev/null +++ b/ld/testsuite/ld-cris/warn1.d @@ -0,0 +1,11 @@ +#source: start1.s +#source: globsym1ref.s +#source: globsymw1.s +#target: cris-*-*elf* cris-*-*aout* +#as: --em=crisaout +#ld: -mcrisaout +#objdump: -p +# There should be no warning, since the symbol warned about is +# missing from the construct. +.*: file format a\.out-cris +#pass diff --git a/ld/testsuite/ld-cris/warn2.d b/ld/testsuite/ld-cris/warn2.d new file mode 100644 index 0000000..96f089e --- /dev/null +++ b/ld/testsuite/ld-cris/warn2.d @@ -0,0 +1,11 @@ +#source: start1.s +#source: globsym1ref.s +#source: globsymw1.s +#target: cris-*-*elf* cris-*-*aout* +#as: --em=criself +#ld: -mcriself +#objdump: -p +# There should be no warning, since the symbol warned about is +# missing from the construct. +.*: file format elf32.*-cris +#pass |