+2018-01-11 Andrew Burgess <andrew.burgess@embecosm.com>
+
+ * testsuite/ld-scripts/provide-3.d: Add xfail directive.
+ * testsuite/ld-scripts/provide-4.d: Use new map file name.
+ * testsuite/ld-scripts/provide-5.d: Use new map file name.
+ * testsuite/ld-scripts/provide-4-map.d: Renamed to...
+ * testsuite/ld-scripts/provide-4.map: ...this.
+ * testsuite/ld-scripts/provide-5-map.d: Renamed to...
+ * testsuite/ld-scripts/provide-5.map: ...this.
+ * testsuite/ld-scripts/provide.exp: Move xfail into provide-3.d
+ file, and run tests in a loop.
+
2018-01-11 Andrew Burgess <andrew.burgess@embecosm.com>
* ldexp.c (exp_print_tree): Use '=' instead of ',' when printing
#source: provide-3.s
#ld: -T provide-3.t
#error: symbol defined in linker script and object file
+#xfail: "*-*-*"
+++ /dev/null
-#...
-Linker script and memory map
-#...
- \[!provide\] +PROVIDE \(foo = 0x1\)
- \[!provide\] +PROVIDE \(bar = 0x2\)
- 0x0+3 +PROVIDE \(baz = 0x3\)
-#...
- 0x0+2000 +foo
- \[!provide\] +PROVIDE \(loc1 = ALIGN \(\., 0x10\)\)
- 0x0+2010 +PROVIDE \(loc2 = ALIGN \(\., 0x10\)\)
- \[!provide\] +PROVIDE \(loc3 = \(loc1 \+ 0x20\)\)
- 0x0+2030 +loc4 = \(loc2 \+ 0x20\)
-#...
#source: provide-2.s
#ld: -T provide-4.t
#PROG: nm
-#map: provide-4-map.d
+#map: provide-4.map
#...
0+3 A baz
0+2000 D foo
--- /dev/null
+#...
+Linker script and memory map
+#...
+ \[!provide\] +PROVIDE \(foo = 0x1\)
+ \[!provide\] +PROVIDE \(bar = 0x2\)
+ 0x0+3 +PROVIDE \(baz = 0x3\)
+#...
+ 0x0+2000 +foo
+ \[!provide\] +PROVIDE \(loc1 = ALIGN \(\., 0x10\)\)
+ 0x0+2010 +PROVIDE \(loc2 = ALIGN \(\., 0x10\)\)
+ \[!provide\] +PROVIDE \(loc3 = \(loc1 \+ 0x20\)\)
+ 0x0+2030 +loc4 = \(loc2 \+ 0x20\)
+#...
+++ /dev/null
-#...
-Linker script and memory map
-#...
- 0x0+10 +foo = 0x10
- \[!provide\] +PROVIDE \(foo = bar\)
-#...
#source: provide-5.s
#ld: -T provide-5.t
#PROG: nm
-#map: provide-5-map.d
+#map: provide-5.map
#...
0+10 A foo
--- /dev/null
+#...
+Linker script and memory map
+#...
+ 0x0+10 +foo = 0x10
+ \[!provide\] +PROVIDE \(foo = bar\)
+#...
set LDFLAGS "$LDFLAGS --image-base 0"
}
-run_dump_test provide-1
-run_dump_test provide-2
-setup_xfail *-*-*
-run_dump_test provide-3
-run_dump_test provide-4
-run_dump_test provide-5
+set test_list [lsort [glob -nocomplain $srcdir/$subdir/provide-*.d]]
+foreach test_file $test_list {
+ set test_name [file rootname $test_file]
+ verbose $test_name
+ run_dump_test $test_name
+}
set LDFLAGS "$saved_LDFLAGS"