summaryrefslogtreecommitdiff
path: root/ld/testsuite/ld-scripts/defined3.d
blob: 61061b681c7588b00a6c2278cc7d4e4f2181f84e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
#ld: -Tdefined3.t
#nm: -B
#source: phdrs.s
#source: defined.s
#xfail: "rs6000-*-aix*"

# Check that DEFINED matches only symbols defined before its location.
# The ellipsis account for target-specific symbols.  Matching both A and T
# accounts for formats that can't tell a .text symbol from an absolute
# symbol (mmo), but matches whatever section that contains an address
# matching the value.

#...
0+1 [AT] defined
#...
0+200 A defined1
#...
0+201 A defined2
#...
0+100 A defined3
#...
0+ [AT] defined4
#...
0+2a A defined5
#...
0+ [AT] defined6
#...
0+1 [AT] defined7
#...
0+1 [AT] defined8
#...
0+2a A sym1
#...
[0-9a-f]+ T sym2
#pass