Support -z relro on metag
[deliverable/binutils-gdb.git] / ld / testsuite / ld-nios2 / nios2.exp
CommitLineData
36591ba1 1if { ! [istarget nios2-*-*] } {
965b1d80 2 return
36591ba1
SL
3}
4
5foreach test [lsort [glob -nocomplain $srcdir/$subdir/*.d]] {
6 run_dump_test [file rootname $test]
7}
965b1d80
SL
8
9global link_output
10global ld
11
12set test_name "NIOS2 Mixed R1 and R2 objects"
13set test mixed1
14
15if ![ld_assemble $as "-march=r1 $srcdir/$subdir/${test}a.s" tmpdir/${test}a.o] {
16 unresolved "Build mixed1a.o"
17 return
18}
19
20if ![ld_assemble $as "-march=r2 $srcdir/$subdir/${test}b.s" tmpdir/${test}b.o] {
21 unresolved "Build mixed1b.o"
22 return
23}
24
25if { ![ld_simple_link $ld tmpdir/$test "tmpdir/${test}a.o tmpdir/${test}b.o"] } {
26 if [string match "*architecture * is incompatible*" $link_output] {
27 pass "$test_name"
28 } {
29 fail "$test_name"
30 }
31}
This page took 0.257795 seconds and 4 git commands to generate.