aboutsummaryrefslogtreecommitdiff
path: root/ld/testsuite/ld-scripts/sort-file-reversed-2.d
blob: 3e829f2d20dea5a8874540a5c0fcb439f269d985 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#source: sort-file1.s
#source: sort-file2.s
#ld: -T sort-file-reversed-2.t  --no-warn-rwx-segments
#nm: -n

# Check that REVERSE+SORT_BY_NAME on filenames works.
# Also check that REVERSE implies SORT_BY_NAME.
# The text sections should come in reversed sorted order, the data
# sections in reversed order too.  Note how we specifically pass
# the object filenames in alphabetical order
#...
0[0-9a-f]* t infile2
#...
0[0-9a-f]* t infile1
#...
0[0-9a-f]* d data2
#...
0[0-9a-f]* d data1
#pass