aboutsummaryrefslogtreecommitdiff
path: root/ld/testsuite/ld-elf/warn3.d
blob: c99618d028136cfa44ffd68d806b9a242e067bfa (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#source: start.s
#ld: tmpdir/symbol3w.o tmpdir/symbol3.a 
#warning: .*: warning: badsym warning$
#readelf: -s
#notarget: "sparc64-*-solaris2*" "sparcv9-*-solaris2*"
#xfail: arc-*-* d30v-*-* dlx-*-* fr30-*-* frv-*-elf i860-*-* i960-*-*
#xfail: iq*-*-* mn10200-*-* moxie-*-* msp*-*-* mt-*-* or32-*-* pj*-*-*
# if not using elf32.em, you don't get fancy section handling

# Check that warnings are generated for the symbols in .gnu.warning
# construct and that the symbol still appears as expected.

#...
 +[0-9]+: +[0-9a-f]+ +4 +OBJECT +GLOBAL +DEFAULT +[1-9] badsym
#pass