diff options
Diffstat (limited to 'meta/recipes-devtools/binutils/binutils/0006-warn-for-uses-of-system-directories-when-cross-linki.patch')
-rw-r--r-- | meta/recipes-devtools/binutils/binutils/0006-warn-for-uses-of-system-directories-when-cross-linki.patch | 38 |
1 files changed, 19 insertions, 19 deletions
diff --git a/meta/recipes-devtools/binutils/binutils/0006-warn-for-uses-of-system-directories-when-cross-linki.patch b/meta/recipes-devtools/binutils/binutils/0006-warn-for-uses-of-system-directories-when-cross-linki.patch index 9b09ec09cb..1dcea9fe28 100644 --- a/meta/recipes-devtools/binutils/binutils/0006-warn-for-uses-of-system-directories-when-cross-linki.patch +++ b/meta/recipes-devtools/binutils/binutils/0006-warn-for-uses-of-system-directories-when-cross-linki.patch | |||
@@ -1,4 +1,4 @@ | |||
1 | From 41b09c6a9d78a31db0f3c70d27c05475292bde7e Mon Sep 17 00:00:00 2001 | 1 | From 7a6074edd927273ae6924dc676ca2fdf127ce542 Mon Sep 17 00:00:00 2001 |
2 | From: Khem Raj <raj.khem@gmail.com> | 2 | From: Khem Raj <raj.khem@gmail.com> |
3 | Date: Fri, 15 Jan 2016 06:31:09 +0000 | 3 | Date: Fri, 15 Jan 2016 06:31:09 +0000 |
4 | Subject: [PATCH] warn for uses of system directories when cross linking | 4 | Subject: [PATCH] warn for uses of system directories when cross linking |
@@ -63,10 +63,10 @@ Signed-off-by: Khem Raj <raj.khem@gmail.com> | |||
63 | 9 files changed, 87 insertions(+), 2 deletions(-) | 63 | 9 files changed, 87 insertions(+), 2 deletions(-) |
64 | 64 | ||
65 | diff --git a/ld/config.in b/ld/config.in | 65 | diff --git a/ld/config.in b/ld/config.in |
66 | index ad0dc6a106c..d21edaddce7 100644 | 66 | index 52d62f06ff0..b5944e7ba55 100644 |
67 | --- a/ld/config.in | 67 | --- a/ld/config.in |
68 | +++ b/ld/config.in | 68 | +++ b/ld/config.in |
69 | @@ -58,6 +58,9 @@ | 69 | @@ -70,6 +70,9 @@ |
70 | language is requested. */ | 70 | language is requested. */ |
71 | #undef ENABLE_NLS | 71 | #undef ENABLE_NLS |
72 | 72 | ||
@@ -77,10 +77,10 @@ index ad0dc6a106c..d21edaddce7 100644 | |||
77 | #undef EXTRA_SHLIB_EXTENSION | 77 | #undef EXTRA_SHLIB_EXTENSION |
78 | 78 | ||
79 | diff --git a/ld/configure b/ld/configure | 79 | diff --git a/ld/configure b/ld/configure |
80 | index 1503936432f..29896853a90 100755 | 80 | index add770f883c..867f3f62c88 100755 |
81 | --- a/ld/configure | 81 | --- a/ld/configure |
82 | +++ b/ld/configure | 82 | +++ b/ld/configure |
83 | @@ -839,6 +839,7 @@ with_lib_path | 83 | @@ -844,6 +844,7 @@ with_lib_path |
84 | enable_targets | 84 | enable_targets |
85 | enable_64_bit_bfd | 85 | enable_64_bit_bfd |
86 | with_sysroot | 86 | with_sysroot |
@@ -88,7 +88,7 @@ index 1503936432f..29896853a90 100755 | |||
88 | enable_gold | 88 | enable_gold |
89 | enable_got | 89 | enable_got |
90 | enable_compressed_debug_sections | 90 | enable_compressed_debug_sections |
91 | @@ -1521,6 +1522,8 @@ Optional Features: | 91 | @@ -1534,6 +1535,8 @@ Optional Features: |
92 | --enable-checking enable run-time checks | 92 | --enable-checking enable run-time checks |
93 | --enable-targets alternative target configurations | 93 | --enable-targets alternative target configurations |
94 | --enable-64-bit-bfd 64-bit support (on hosts with narrower word sizes) | 94 | --enable-64-bit-bfd 64-bit support (on hosts with narrower word sizes) |
@@ -97,7 +97,7 @@ index 1503936432f..29896853a90 100755 | |||
97 | --enable-gold[=ARG] build gold [ARG={default,yes,no}] | 97 | --enable-gold[=ARG] build gold [ARG={default,yes,no}] |
98 | --enable-got=<type> GOT handling scheme (target, single, negative, | 98 | --enable-got=<type> GOT handling scheme (target, single, negative, |
99 | multigot) | 99 | multigot) |
100 | @@ -15483,6 +15486,19 @@ fi | 100 | @@ -15566,6 +15569,19 @@ fi |
101 | 101 | ||
102 | 102 | ||
103 | 103 | ||
@@ -118,7 +118,7 @@ index 1503936432f..29896853a90 100755 | |||
118 | if test "${enable_gold+set}" = set; then : | 118 | if test "${enable_gold+set}" = set; then : |
119 | enableval=$enable_gold; case "${enableval}" in | 119 | enableval=$enable_gold; case "${enableval}" in |
120 | diff --git a/ld/configure.ac b/ld/configure.ac | 120 | diff --git a/ld/configure.ac b/ld/configure.ac |
121 | index 77edac3258c..a74dac63038 100644 | 121 | index 4a11787ae71..104a531fb0f 100644 |
122 | --- a/ld/configure.ac | 122 | --- a/ld/configure.ac |
123 | +++ b/ld/configure.ac | 123 | +++ b/ld/configure.ac |
124 | @@ -103,6 +103,16 @@ AC_SUBST(use_sysroot) | 124 | @@ -103,6 +103,16 @@ AC_SUBST(use_sysroot) |
@@ -139,10 +139,10 @@ index 77edac3258c..a74dac63038 100644 | |||
139 | dnl "install_as_default" is set to false if gold is the default linker. | 139 | dnl "install_as_default" is set to false if gold is the default linker. |
140 | dnl "installed_linker" is the installed BFD linker name. | 140 | dnl "installed_linker" is the installed BFD linker name. |
141 | diff --git a/ld/ld.h b/ld/ld.h | 141 | diff --git a/ld/ld.h b/ld/ld.h |
142 | index a0f8a15c7a9..e3db345f3a5 100644 | 142 | index 54d9079678c..9f0163b2911 100644 |
143 | --- a/ld/ld.h | 143 | --- a/ld/ld.h |
144 | +++ b/ld/ld.h | 144 | +++ b/ld/ld.h |
145 | @@ -163,6 +163,14 @@ typedef struct | 145 | @@ -166,6 +166,14 @@ typedef struct |
146 | in the linker script. */ | 146 | in the linker script. */ |
147 | bool force_group_allocation; | 147 | bool force_group_allocation; |
148 | 148 | ||
@@ -158,11 +158,11 @@ index a0f8a15c7a9..e3db345f3a5 100644 | |||
158 | enum endian_enum endian; | 158 | enum endian_enum endian; |
159 | 159 | ||
160 | diff --git a/ld/ld.texi b/ld/ld.texi | 160 | diff --git a/ld/ld.texi b/ld/ld.texi |
161 | index aa8b1aa86eb..9bc4bc28823 100644 | 161 | index 4fda259a552..22685f5f1dd 100644 |
162 | --- a/ld/ld.texi | 162 | --- a/ld/ld.texi |
163 | +++ b/ld/ld.texi | 163 | +++ b/ld/ld.texi |
164 | @@ -3059,6 +3059,18 @@ creation of the metadata note, if one had been enabled by an earlier | 164 | @@ -3119,6 +3119,18 @@ creation of the metadata note, if one had been enabled by an earlier |
165 | occurrence of the --package-metdata option. | 165 | occurrence of the --package-metadata option. |
166 | If the linker has been built with libjansson, then the JSON string | 166 | If the linker has been built with libjansson, then the JSON string |
167 | will be validated. | 167 | will be validated. |
168 | + | 168 | + |
@@ -181,7 +181,7 @@ index aa8b1aa86eb..9bc4bc28823 100644 | |||
181 | 181 | ||
182 | @c man end | 182 | @c man end |
183 | diff --git a/ld/ldfile.c b/ld/ldfile.c | 183 | diff --git a/ld/ldfile.c b/ld/ldfile.c |
184 | index df7c9cbd65e..0c965593225 100644 | 184 | index dc9875d8813..49d899ee49d 100644 |
185 | --- a/ld/ldfile.c | 185 | --- a/ld/ldfile.c |
186 | +++ b/ld/ldfile.c | 186 | +++ b/ld/ldfile.c |
187 | @@ -327,6 +327,23 @@ ldfile_add_library_path (const char *name, bool cmdline) | 187 | @@ -327,6 +327,23 @@ ldfile_add_library_path (const char *name, bool cmdline) |
@@ -209,7 +209,7 @@ index df7c9cbd65e..0c965593225 100644 | |||
209 | 209 | ||
210 | /* Try to open a BFD for a lang_input_statement. */ | 210 | /* Try to open a BFD for a lang_input_statement. */ |
211 | diff --git a/ld/ldlex.h b/ld/ldlex.h | 211 | diff --git a/ld/ldlex.h b/ld/ldlex.h |
212 | index 87cac02141d..d1a478fb827 100644 | 212 | index 161a9d4d8dc..757fe2f7650 100644 |
213 | --- a/ld/ldlex.h | 213 | --- a/ld/ldlex.h |
214 | +++ b/ld/ldlex.h | 214 | +++ b/ld/ldlex.h |
215 | @@ -147,6 +147,8 @@ enum option_values | 215 | @@ -147,6 +147,8 @@ enum option_values |
@@ -222,7 +222,7 @@ index 87cac02141d..d1a478fb827 100644 | |||
222 | OPTION_PRINT_OUTPUT_FORMAT, | 222 | OPTION_PRINT_OUTPUT_FORMAT, |
223 | OPTION_PRINT_SYSROOT, | 223 | OPTION_PRINT_SYSROOT, |
224 | diff --git a/ld/ldmain.c b/ld/ldmain.c | 224 | diff --git a/ld/ldmain.c b/ld/ldmain.c |
225 | index 5c38e8cd313..04eed320aca 100644 | 225 | index 01b306e58a1..eddefc24332 100644 |
226 | --- a/ld/ldmain.c | 226 | --- a/ld/ldmain.c |
227 | +++ b/ld/ldmain.c | 227 | +++ b/ld/ldmain.c |
228 | @@ -326,6 +326,8 @@ main (int argc, char **argv) | 228 | @@ -326,6 +326,8 @@ main (int argc, char **argv) |
@@ -253,10 +253,10 @@ index 5c38e8cd313..04eed320aca 100644 | |||
253 | { | 253 | { |
254 | if (error_count < MAX_ERRORS_IN_A_ROW) | 254 | if (error_count < MAX_ERRORS_IN_A_ROW) |
255 | diff --git a/ld/lexsup.c b/ld/lexsup.c | 255 | diff --git a/ld/lexsup.c b/ld/lexsup.c |
256 | index fe8722313fe..1df7af3ccaa 100644 | 256 | index 099dff8ecde..e9939000b2e 100644 |
257 | --- a/ld/lexsup.c | 257 | --- a/ld/lexsup.c |
258 | +++ b/ld/lexsup.c | 258 | +++ b/ld/lexsup.c |
259 | @@ -629,6 +629,14 @@ static const struct ld_option ld_options[] = | 259 | @@ -642,6 +642,14 @@ static const struct ld_option ld_options[] = |
260 | " <method> is: share-unconflicted (default),\n" | 260 | " <method> is: share-unconflicted (default),\n" |
261 | " share-duplicated"), | 261 | " share-duplicated"), |
262 | TWO_DASHES }, | 262 | TWO_DASHES }, |
@@ -271,7 +271,7 @@ index fe8722313fe..1df7af3ccaa 100644 | |||
271 | }; | 271 | }; |
272 | 272 | ||
273 | #define OPTION_COUNT ARRAY_SIZE (ld_options) | 273 | #define OPTION_COUNT ARRAY_SIZE (ld_options) |
274 | @@ -1787,6 +1795,13 @@ parse_args (unsigned argc, char **argv) | 274 | @@ -1818,6 +1826,13 @@ parse_args (unsigned argc, char **argv) |
275 | 275 | ||
276 | case OPTION_PRINT_MAP_LOCALS: | 276 | case OPTION_PRINT_MAP_LOCALS: |
277 | config.print_map_locals = true; | 277 | config.print_map_locals = true; |