summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools/binutils/binutils/0006-warn-for-uses-of-system-directories-when-cross-linki.patch
diff options
context:
space:
mode:
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.patch44
1 files changed, 22 insertions, 22 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 00fb5aad1b..0ca55d4095 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 @@
1From 2c43b1357db6b09d1645704afd3f45be6de0cf4d Mon Sep 17 00:00:00 2001 1From b9af05e87ac8eb4fa18a75939edb661056246c30 Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com> 2From: Khem Raj <raj.khem@gmail.com>
3Date: Fri, 15 Jan 2016 06:31:09 +0000 3Date: Fri, 15 Jan 2016 06:31:09 +0000
4Subject: [PATCH] warn for uses of system directories when cross linking 4Subject: [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, 88 insertions(+), 2 deletions(-) 63 9 files changed, 88 insertions(+), 2 deletions(-)
64 64
65diff --git a/ld/config.in b/ld/config.in 65diff --git a/ld/config.in b/ld/config.in
66index d4c1fc420b5..1aece0b2c29 100644 66index ad0dc6a106c..d21edaddce7 100644
67--- a/ld/config.in 67--- a/ld/config.in
68+++ b/ld/config.in 68+++ b/ld/config.in
69@@ -55,6 +55,9 @@ 69@@ -58,6 +58,9 @@
70 language is requested. */ 70 language is requested. */
71 #undef ENABLE_NLS 71 #undef ENABLE_NLS
72 72
@@ -77,10 +77,10 @@ index d4c1fc420b5..1aece0b2c29 100644
77 #undef EXTRA_SHLIB_EXTENSION 77 #undef EXTRA_SHLIB_EXTENSION
78 78
79diff --git a/ld/configure b/ld/configure 79diff --git a/ld/configure b/ld/configure
80index e58fb7f3a35..d0a467ac101 100755 80index 49936a0cb2a..5f5dad6d67c 100755
81--- a/ld/configure 81--- a/ld/configure
82+++ b/ld/configure 82+++ b/ld/configure
83@@ -836,6 +836,7 @@ with_lib_path 83@@ -839,6 +839,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 e58fb7f3a35..d0a467ac101 100755
88 enable_gold 88 enable_gold
89 enable_got 89 enable_got
90 enable_compressed_debug_sections 90 enable_compressed_debug_sections
91@@ -1514,6 +1515,8 @@ Optional Features: 91@@ -1521,6 +1522,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 e58fb7f3a35..d0a467ac101 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@@ -15349,6 +15352,19 @@ fi 100@@ -15483,6 +15486,19 @@ fi
101 101
102 102
103 103
@@ -118,10 +118,10 @@ index e58fb7f3a35..d0a467ac101 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
120diff --git a/ld/configure.ac b/ld/configure.ac 120diff --git a/ld/configure.ac b/ld/configure.ac
121index 4331d6b1302..e2976bc2926 100644 121index 77edac3258c..a74dac63038 100644
122--- a/ld/configure.ac 122--- a/ld/configure.ac
123+++ b/ld/configure.ac 123+++ b/ld/configure.ac
124@@ -102,6 +102,16 @@ AC_SUBST(use_sysroot) 124@@ -103,6 +103,16 @@ AC_SUBST(use_sysroot)
125 AC_SUBST(TARGET_SYSTEM_ROOT) 125 AC_SUBST(TARGET_SYSTEM_ROOT)
126 AC_SUBST(TARGET_SYSTEM_ROOT_DEFINE) 126 AC_SUBST(TARGET_SYSTEM_ROOT_DEFINE)
127 127
@@ -139,10 +139,10 @@ index 4331d6b1302..e2976bc2926 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.
141diff --git a/ld/ld.h b/ld/ld.h 141diff --git a/ld/ld.h b/ld/ld.h
142index f3086bf30de..db5064243c7 100644 142index 05649ff61b8..1818c227473 100644
143--- a/ld/ld.h 143--- a/ld/ld.h
144+++ b/ld/ld.h 144+++ b/ld/ld.h
145@@ -162,6 +162,14 @@ typedef struct 145@@ -163,6 +163,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,10 +158,10 @@ index f3086bf30de..db5064243c7 100644
158 enum endian_enum endian; 158 enum endian_enum endian;
159 159
160diff --git a/ld/ld.texi b/ld/ld.texi 160diff --git a/ld/ld.texi b/ld/ld.texi
161index eabbec8faa9..c4680e4947e 100644 161index db3a9f09b45..77037399cb9 100644
162--- a/ld/ld.texi 162--- a/ld/ld.texi
163+++ b/ld/ld.texi 163+++ b/ld/ld.texi
164@@ -2947,6 +2947,18 @@ creation of the metadata note, if one had been enabled by an earlier 164@@ -2960,6 +2960,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-metdata 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.
@@ -181,7 +181,7 @@ index eabbec8faa9..c4680e4947e 100644
181 181
182 @c man end 182 @c man end
183diff --git a/ld/ldfile.c b/ld/ldfile.c 183diff --git a/ld/ldfile.c b/ld/ldfile.c
184index 731ae5f7aed..dd8f03fd960 100644 184index b8fd4e5d8e0..1f1d8e23bc9 100644
185--- a/ld/ldfile.c 185--- a/ld/ldfile.c
186+++ b/ld/ldfile.c 186+++ b/ld/ldfile.c
187@@ -117,6 +117,23 @@ ldfile_add_library_path (const char *name, bool cmdline) 187@@ -117,6 +117,23 @@ ldfile_add_library_path (const char *name, bool cmdline)
@@ -209,10 +209,10 @@ index 731ae5f7aed..dd8f03fd960 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. */
211diff --git a/ld/ldlex.h b/ld/ldlex.h 211diff --git a/ld/ldlex.h b/ld/ldlex.h
212index 57ade1f754b..64007ff8684 100644 212index 0538f0a06a1..f94a71875d8 100644
213--- a/ld/ldlex.h 213--- a/ld/ldlex.h
214+++ b/ld/ldlex.h 214+++ b/ld/ldlex.h
215@@ -168,6 +168,8 @@ enum option_values 215@@ -170,6 +170,8 @@ enum option_values
216 OPTION_NO_WARN_EXECSTACK, 216 OPTION_NO_WARN_EXECSTACK,
217 OPTION_WARN_RWX_SEGMENTS, 217 OPTION_WARN_RWX_SEGMENTS,
218 OPTION_NO_WARN_RWX_SEGMENTS, 218 OPTION_NO_WARN_RWX_SEGMENTS,
@@ -222,7 +222,7 @@ index 57ade1f754b..64007ff8684 100644
222 222
223 /* The initial parser states. */ 223 /* The initial parser states. */
224diff --git a/ld/ldmain.c b/ld/ldmain.c 224diff --git a/ld/ldmain.c b/ld/ldmain.c
225index 1ae90a77749..f40750fd816 100644 225index ceaca2d85d0..62e7b4e5341 100644
226--- a/ld/ldmain.c 226--- a/ld/ldmain.c
227+++ b/ld/ldmain.c 227+++ b/ld/ldmain.c
228@@ -322,6 +322,8 @@ main (int argc, char **argv) 228@@ -322,6 +322,8 @@ main (int argc, char **argv)
@@ -234,7 +234,7 @@ index 1ae90a77749..f40750fd816 100644
234 234
235 /* We initialize DEMANGLING based on the environment variable 235 /* We initialize DEMANGLING based on the environment variable
236 COLLECT_NO_DEMANGLE. The gcc collect2 program will demangle the 236 COLLECT_NO_DEMANGLE. The gcc collect2 program will demangle the
237@@ -1447,7 +1449,7 @@ undefined_symbol (struct bfd_link_info *info, 237@@ -1454,7 +1456,7 @@ undefined_symbol (struct bfd_link_info *info,
238 argv[1] = "undefined-symbol"; 238 argv[1] = "undefined-symbol";
239 argv[2] = (char *) name; 239 argv[2] = (char *) name;
240 argv[3] = NULL; 240 argv[3] = NULL;
@@ -243,7 +243,7 @@ index 1ae90a77749..f40750fd816 100644
243 if (verbose) 243 if (verbose)
244 einfo (_("%P: About to run error handling script '%s' with arguments: '%s' '%s'\n"), 244 einfo (_("%P: About to run error handling script '%s' with arguments: '%s' '%s'\n"),
245 argv[0], argv[1], argv[2]); 245 argv[0], argv[1], argv[2]);
246@@ -1468,7 +1470,7 @@ undefined_symbol (struct bfd_link_info *info, 246@@ -1475,7 +1477,7 @@ undefined_symbol (struct bfd_link_info *info,
247 carry on to issue the normal error message. */ 247 carry on to issue the normal error message. */
248 } 248 }
249 #endif /* SUPPORT_ERROR_HANDLING_SCRIPT */ 249 #endif /* SUPPORT_ERROR_HANDLING_SCRIPT */
@@ -253,10 +253,10 @@ index 1ae90a77749..f40750fd816 100644
253 { 253 {
254 if (error_count < MAX_ERRORS_IN_A_ROW) 254 if (error_count < MAX_ERRORS_IN_A_ROW)
255diff --git a/ld/lexsup.c b/ld/lexsup.c 255diff --git a/ld/lexsup.c b/ld/lexsup.c
256index 9225f71b3ce..92fb66f1fa2 100644 256index c5960385572..eb54627fb71 100644
257--- a/ld/lexsup.c 257--- a/ld/lexsup.c
258+++ b/ld/lexsup.c 258+++ b/ld/lexsup.c
259@@ -608,6 +608,14 @@ static const struct ld_option ld_options[] = 259@@ -613,6 +613,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 9225f71b3ce..92fb66f1fa2 100644
271 }; 271 };
272 272
273 #define OPTION_COUNT ARRAY_SIZE (ld_options) 273 #define OPTION_COUNT ARRAY_SIZE (ld_options)
274@@ -1722,6 +1730,14 @@ parse_args (unsigned argc, char **argv) 274@@ -1735,6 +1743,14 @@ parse_args (unsigned argc, char **argv)
275 config.print_map_discarded = true; 275 config.print_map_discarded = true;
276 break; 276 break;
277 277