* ld-elf/start.s, ld-elf/symbolref.s, ld-elf/symbol1w.s,

ld-elf/warn1.d: New test.
This commit is contained in:
Hans-Peter Nilsson 2005-02-07 02:46:15 +00:00
parent 765f2ef695
commit b80f2c6aab
5 changed files with 33 additions and 0 deletions

View File

@ -1,5 +1,8 @@
2005-02-07 Hans-Peter Nilsson <hp@axis.com>
* ld-elf/start.s, ld-elf/symbolref.s, ld-elf/symbol1w.s,
ld-elf/warn1.d: New test.
* lib/ld-lib.exp: Support new directive "warning".
2005-02-02 Daniel Jacobowitz <dan@codesourcery.com>

View File

@ -0,0 +1,4 @@
.text
.global _start
_start:
.long 0

View File

@ -0,0 +1,3 @@
.text
.long symbol1

View File

@ -0,0 +1,10 @@
.section .gnu.warning.symbol1
.asciz "witty one-liner"
.text
.type symbol1,@function
.global symbol1
symbol1:
.L1:
.long 0
.L0:
.size symbol1,.L0-.L1

View File

@ -0,0 +1,13 @@
#source: start.s
#source: symbol1ref.s
#source: symbol1w.s
#ld:
#warning: ^[^\\n]*\): warning: witty one-liner$
#readelf: -s
# Check that warnings are generated for the .gnu.warning.SYMBOL
# construct and that the symbol still appears as expected.
#...
[ ]+[0-9]+:[ ]+[0-9a-f]+[ ]+[48][ ]+FUNC[ ]+GLOBAL DEFAULT[ ]+[1-9] symbol1
#pass