summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools/binutils/binutils/binutils-poison.patch
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-devtools/binutils/binutils/binutils-poison.patch')
-rw-r--r--meta/recipes-devtools/binutils/binutils/binutils-poison.patch40
1 files changed, 20 insertions, 20 deletions
diff --git a/meta/recipes-devtools/binutils/binutils/binutils-poison.patch b/meta/recipes-devtools/binutils/binutils/binutils-poison.patch
index 996c023810..eb540766dc 100644
--- a/meta/recipes-devtools/binutils/binutils/binutils-poison.patch
+++ b/meta/recipes-devtools/binutils/binutils/binutils-poison.patch
@@ -106,10 +106,10 @@ Index: binutils-2.24/ld/configure
106 106
107 # Check whether --enable-got was given. 107 # Check whether --enable-got was given.
108 if test "${enable_got+set}" = set; then : 108 if test "${enable_got+set}" = set; then :
109Index: binutils-2.24/ld/configure.in 109Index: binutils-2.24/ld/configure.ac
110=================================================================== 110===================================================================
111--- binutils-2.24.orig/ld/configure.in 2013-12-15 11:46:17.000000000 -0800 111--- binutils-2.24.orig/ld/configure.ac 2013-12-15 11:46:17.000000000 -0800
112+++ binutils-2.24/ld/configure.in 2013-12-15 11:46:59.810435651 -0800 112+++ binutils-2.24/ld/configure.ac 2013-12-15 11:46:59.810435651 -0800
113@@ -87,6 +87,16 @@ 113@@ -87,6 +87,16 @@
114 AC_SUBST(TARGET_SYSTEM_ROOT) 114 AC_SUBST(TARGET_SYSTEM_ROOT)
115 AC_SUBST(TARGET_SYSTEM_ROOT_DEFINE) 115 AC_SUBST(TARGET_SYSTEM_ROOT_DEFINE)
@@ -214,10 +214,10 @@ Index: binutils-2.24/ld/lexsup.c
214=================================================================== 214===================================================================
215--- binutils-2.24.orig/ld/lexsup.c 2013-12-15 11:46:17.000000000 -0800 215--- binutils-2.24.orig/ld/lexsup.c 2013-12-15 11:46:17.000000000 -0800
216+++ binutils-2.24/ld/lexsup.c 2013-12-15 11:49:28.950434490 -0800 216+++ binutils-2.24/ld/lexsup.c 2013-12-15 11:49:28.950434490 -0800
217@@ -507,6 +507,14 @@ 217@@ -513,6 +513,14 @@ static const struct ld_option ld_options[] =
218 OPTION_IGNORE_UNRESOLVED_SYMBOL}, 218 { {"pop-state", no_argument, NULL, OPTION_POP_STATE},
219 '\0', N_("SYMBOL"), 219 '\0', NULL, N_("Pop state of flags governing input file handling"),
220 N_("Unresolved SYMBOL will not cause an error or warning"), TWO_DASHES }, 220 TWO_DASHES },
221+ { {"no-poison-system-directories", no_argument, NULL, 221+ { {"no-poison-system-directories", no_argument, NULL,
222+ OPTION_NO_POISON_SYSTEM_DIRECTORIES}, 222+ OPTION_NO_POISON_SYSTEM_DIRECTORIES},
223+ '\0', NULL, N_("Do not warn for -L options using system directories"), 223+ '\0', NULL, N_("Do not warn for -L options using system directories"),
@@ -229,18 +229,18 @@ Index: binutils-2.24/ld/lexsup.c
229 }; 229 };
230 230
231 #define OPTION_COUNT ARRAY_SIZE (ld_options) 231 #define OPTION_COUNT ARRAY_SIZE (ld_options)
232@@ -1442,6 +1450,14 @@ 232@@ -1474,6 +1482,14 @@ parse_args (unsigned argc, char **argv)
233 einfo (_("%P%X: --hash-size needs a numeric argument\n")); 233 free (oldp);
234 } 234 }
235 break; 235 break;
236+ 236+
237+ case OPTION_NO_POISON_SYSTEM_DIRECTORIES: 237+ case OPTION_NO_POISON_SYSTEM_DIRECTORIES:
238+ command_line.poison_system_directories = FALSE; 238+ command_line.poison_system_directories = FALSE;
239+ break; 239+ break;
240+ 240+
241+ case OPTION_ERROR_POISON_SYSTEM_DIRECTORIES: 241+ case OPTION_ERROR_POISON_SYSTEM_DIRECTORIES:
242+ command_line.error_poison_system_directories = TRUE; 242+ command_line.error_poison_system_directories = TRUE;
243+ break; 243+ break;
244 } 244 }
245 } 245 }
246 246
@@ -248,10 +248,10 @@ Index: binutils-2.24/ld/ldlex.h
248=================================================================== 248===================================================================
249--- binutils-2.24.orig/ld/ldlex.h 2013-12-15 11:46:17.000000000 -0800 249--- binutils-2.24.orig/ld/ldlex.h 2013-12-15 11:46:17.000000000 -0800
250+++ binutils-2.24/ld/ldlex.h 2013-12-15 11:47:43.230435299 -0800 250+++ binutils-2.24/ld/ldlex.h 2013-12-15 11:47:43.230435299 -0800
251@@ -138,6 +138,8 @@ 251@@ -140,6 +140,8 @@ enum option_values
252 OPTION_DEFAULT_SCRIPT,
253 OPTION_PRINT_OUTPUT_FORMAT,
254 OPTION_IGNORE_UNRESOLVED_SYMBOL, 252 OPTION_IGNORE_UNRESOLVED_SYMBOL,
253 OPTION_PUSH_STATE,
254 OPTION_POP_STATE,
255+ OPTION_NO_POISON_SYSTEM_DIRECTORIES, 255+ OPTION_NO_POISON_SYSTEM_DIRECTORIES,
256+ OPTION_ERROR_POISON_SYSTEM_DIRECTORIES, 256+ OPTION_ERROR_POISON_SYSTEM_DIRECTORIES,
257 }; 257 };