GNU Binutils with patches for OS216
Revisión | b9dfae3c245cc41f95bc4158e6f656ada65397ca (tree) |
---|---|
Tiempo | 2016-02-27 01:53:07 |
Autor | Jiong Wang <jiong.wang@arm....> |
Commiter | Jiong Wang |
[Testsuite] treate -specs as both cflags & ldflags
Backport from master
2014-11-11 Jiong Wang <jiong.wang@arm.com>
ld/testsuite/
* lib/ld-lib.exp (run_ld_link_exec_tests): Append board_cflags if gcc
driver used as link tool.
(run_cc_link_exec_tests): Likewise.
@@ -1,6 +1,15 @@ | ||
1 | 1 | 2016-02-26 Jiong Wang <jiong.wang@arm.com> |
2 | 2 | |
3 | 3 | Backport from master: |
4 | + 2014-11-11 Jiong Wang <jiong.wang@arm.com> | |
5 | + | |
6 | + * lib/ld-lib.exp (run_ld_link_exec_tests): Append board_cflags if gcc | |
7 | + driver used as link tool. | |
8 | + (run_cc_link_exec_tests): Likewise. | |
9 | + | |
10 | +2016-02-26 Jiong Wang <jiong.wang@arm.com> | |
11 | + | |
12 | + Backport from master: | |
4 | 13 | 2014-10-30 Will Newton <will.newton@linaro.org> |
5 | 14 | |
6 | 15 | * ld-unique/unique.exp: Use a wider glob for matching ARM |
@@ -1444,6 +1444,13 @@ proc run_cc_link_tests { ldtests } { | ||
1444 | 1444 | global CXXFLAGS |
1445 | 1445 | global ar |
1446 | 1446 | global exec_output |
1447 | + global board_cflags | |
1448 | + | |
1449 | + if [board_info [target_info name] exists cflags] { | |
1450 | + set board_cflags " [board_info [target_info name] cflags]" | |
1451 | + } else { | |
1452 | + set board_cflags "" | |
1453 | + } | |
1447 | 1454 | |
1448 | 1455 | foreach testitem $ldtests { |
1449 | 1456 | set testname [lindex $testitem 0] |
@@ -1500,7 +1507,7 @@ proc run_cc_link_tests { ldtests } { | ||
1500 | 1507 | set failed 1 |
1501 | 1508 | } |
1502 | 1509 | } else { |
1503 | - if { ![ld_simple_link $cc_cmd $binfile "-L$srcdir/$subdir $ldflags $objfiles"] } { | |
1510 | + if { ![ld_simple_link $cc_cmd $binfile "$board_cflags -L$srcdir/$subdir $ldflags $objfiles"] } { | |
1504 | 1511 | set failed 1 |
1505 | 1512 | } |
1506 | 1513 |