* ld-cris/stabs1.s: New file.
* ld-cris/undef2.d, ld-cris/undef3.d: New tests.
This commit is contained in:
parent
9f400ee952
commit
8537fc01f3
6 changed files with 58 additions and 0 deletions
10
ld/testsuite/ld-cris/def2.d
Normal file
10
ld/testsuite/ld-cris/def2.d
Normal file
|
@ -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
|
10
ld/testsuite/ld-cris/def3.d
Normal file
10
ld/testsuite/ld-cris/def3.d
Normal file
|
@ -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
|
1
ld/testsuite/ld-cris/globsym1ref.s
Normal file
1
ld/testsuite/ld-cris/globsym1ref.s
Normal file
|
@ -0,0 +1 @@
|
|||
.long globsym1
|
15
ld/testsuite/ld-cris/globsymw1.s
Normal file
15
ld/testsuite/ld-cris/globsymw1.s
Normal file
|
@ -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
|
11
ld/testsuite/ld-cris/warn1.d
Normal file
11
ld/testsuite/ld-cris/warn1.d
Normal file
|
@ -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
|
11
ld/testsuite/ld-cris/warn2.d
Normal file
11
ld/testsuite/ld-cris/warn2.d
Normal file
|
@ -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
|
Loading…
Reference in a new issue