summaryrefslogtreecommitdiffstats
path: root/toolchain-layer/recipes-devtools/gcc/gcc-4.5/linaro/gcc-4.5-linaro-r99417.patch
diff options
context:
space:
mode:
Diffstat (limited to 'toolchain-layer/recipes-devtools/gcc/gcc-4.5/linaro/gcc-4.5-linaro-r99417.patch')
-rw-r--r--toolchain-layer/recipes-devtools/gcc/gcc-4.5/linaro/gcc-4.5-linaro-r99417.patch53
1 files changed, 0 insertions, 53 deletions
diff --git a/toolchain-layer/recipes-devtools/gcc/gcc-4.5/linaro/gcc-4.5-linaro-r99417.patch b/toolchain-layer/recipes-devtools/gcc/gcc-4.5/linaro/gcc-4.5-linaro-r99417.patch
deleted file mode 100644
index 2ad7e69681..0000000000
--- a/toolchain-layer/recipes-devtools/gcc/gcc-4.5/linaro/gcc-4.5-linaro-r99417.patch
+++ /dev/null
@@ -1,53 +0,0 @@
12010-10-15 Jie Zhang <jie@codesourcery.com>
2
3 Backport from mainline:
4
5 gcc/testsuite/
6 2010-10-15 Jie Zhang <jie@codesourcery.com>
7
8 * lib/lto.exp (lto-link-and-maybe-run): Use the default linker
9 script when relocatable linking.
10
11=== modified file 'gcc/testsuite/lib/lto.exp'
12Index: gcc-4.5/gcc/testsuite/lib/lto.exp
13===================================================================
14--- gcc-4.5.orig/gcc/testsuite/lib/lto.exp
15+++ gcc-4.5/gcc/testsuite/lib/lto.exp
16@@ -156,6 +156,7 @@ proc lto-link-and-maybe-run { testname o
17 global testcase
18 global tool
19 global compile_type
20+ global board_info
21
22 # Check that all of the objects were built successfully.
23 foreach obj [split $objlist] {
24@@ -170,10 +171,29 @@ proc lto-link-and-maybe-run { testname o
25 set options ""
26 lappend options "additional_flags=$optall $optfile"
27
28+ set target_board [target_info name]
29+ set relocatable 0
30+
31+ # Some LTO tests do relocatable linking. Some target boards set
32+ # a linker script which can't be used for relocatable linking.
33+ # Use the default linker script instead.
34+ if { [lsearch -exact [split "$optall $optfile"] "-r"] >= 0 } {
35+ set relocatable 1
36+ }
37+
38+ if { $relocatable } {
39+ set saved_ldscript [board_info $target_board ldscript]
40+ set board_info($target_board,ldscript) ""
41+ }
42+
43 # Link the objects into an executable.
44 set comp_output [${tool}_target_compile "$objlist" $dest executable \
45 "$options"]
46
47+ if { $relocatable } {
48+ set board_info($target_board,ldscript) $saved_ldscript
49+ }
50+
51 # Prune unimportant visibility warnings before checking output.
52 set comp_output [lto_prune_warns $comp_output]
53