summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools/binutils/binutils/0008-warn-for-uses-of-system-directories-when-cross-linki.patch
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-devtools/binutils/binutils/0008-warn-for-uses-of-system-directories-when-cross-linki.patch')
-rw-r--r--meta/recipes-devtools/binutils/binutils/0008-warn-for-uses-of-system-directories-when-cross-linki.patch72
1 files changed, 27 insertions, 45 deletions
diff --git a/meta/recipes-devtools/binutils/binutils/0008-warn-for-uses-of-system-directories-when-cross-linki.patch b/meta/recipes-devtools/binutils/binutils/0008-warn-for-uses-of-system-directories-when-cross-linki.patch
index 2356c6a60f..3f83d48f62 100644
--- a/meta/recipes-devtools/binutils/binutils/0008-warn-for-uses-of-system-directories-when-cross-linki.patch
+++ b/meta/recipes-devtools/binutils/binutils/0008-warn-for-uses-of-system-directories-when-cross-linki.patch
@@ -1,7 +1,7 @@
1From 413075afbdb16e7cc05511682ca9e3c880acb5a7 Mon Sep 17 00:00:00 2001 1From a1d0ca24d3bbdf4cb37537cd84d04a17bf0f813b 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 08/17] warn for uses of system directories when cross linking 4Subject: [PATCH] warn for uses of system directories when cross linking
5 5
62008-07-02 Joseph Myers <joseph@codesourcery.com> 62008-07-02 Joseph Myers <joseph@codesourcery.com>
7 7
@@ -57,13 +57,13 @@ Signed-off-by: Khem Raj <raj.khem@gmail.com>
57 ld/ld.h | 8 ++++++++ 57 ld/ld.h | 8 ++++++++
58 ld/ld.texi | 12 ++++++++++++ 58 ld/ld.texi | 12 ++++++++++++
59 ld/ldfile.c | 17 +++++++++++++++++ 59 ld/ldfile.c | 17 +++++++++++++++++
60 ld/ldlex.h | 5 +++++ 60 ld/ldlex.h | 2 ++
61 ld/ldmain.c | 2 ++ 61 ld/ldmain.c | 2 ++
62 ld/lexsup.c | 27 +++++++++++++++++++++++++++ 62 ld/lexsup.c | 15 +++++++++++++++
63 9 files changed, 100 insertions(+) 63 9 files changed, 85 insertions(+)
64 64
65diff --git a/ld/config.in b/ld/config.in 65diff --git a/ld/config.in b/ld/config.in
66index f1712107367..308e0173c16 100644 66index 7b60d778587..37b8e9b6f6c 100644
67--- a/ld/config.in 67--- a/ld/config.in
68+++ b/ld/config.in 68+++ b/ld/config.in
69@@ -40,6 +40,9 @@ 69@@ -40,6 +40,9 @@
@@ -77,10 +77,10 @@ index f1712107367..308e0173c16 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 f08ce9969ea..1c872c0db5f 100755 80index d399d08d0c4..8355c433c76 100755
81--- a/ld/configure 81--- a/ld/configure
82+++ b/ld/configure 82+++ b/ld/configure
83@@ -826,6 +826,7 @@ with_lib_path 83@@ -828,6 +828,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 f08ce9969ea..1c872c0db5f 100755
88 enable_gold 88 enable_gold
89 enable_got 89 enable_got
90 enable_compressed_debug_sections 90 enable_compressed_debug_sections
91@@ -1493,6 +1494,8 @@ Optional Features: 91@@ -1496,6 +1497,8 @@ Optional Features:
92 --disable-largefile omit support for large files 92 --disable-largefile omit support for large files
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 f08ce9969ea..1c872c0db5f 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@@ -15793,6 +15796,19 @@ fi 100@@ -15820,6 +15823,19 @@ fi
101 101
102 102
103 103
@@ -118,7 +118,7 @@ index f08ce9969ea..1c872c0db5f 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 5a4938afdb0..dbbbde74b04 100644 121index c9c69ab9245..59dab0a6ac4 100644
122--- a/ld/configure.ac 122--- a/ld/configure.ac
123+++ b/ld/configure.ac 123+++ b/ld/configure.ac
124@@ -94,6 +94,16 @@ AC_SUBST(use_sysroot) 124@@ -94,6 +94,16 @@ AC_SUBST(use_sysroot)
@@ -139,7 +139,7 @@ index 5a4938afdb0..dbbbde74b04 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 1790dc81a66..73f832eb169 100644 142index 93f5af92c7d..ff7f71a7b66 100644
143--- a/ld/ld.h 143--- a/ld/ld.h
144+++ b/ld/ld.h 144+++ b/ld/ld.h
145@@ -166,6 +166,14 @@ typedef struct 145@@ -166,6 +166,14 @@ typedef struct
@@ -158,10 +158,10 @@ index 1790dc81a66..73f832eb169 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 2a93e9456ac..3eeb70607fd 100644 161index 7a602b9c6ab..cccbfbab3bb 100644
162--- a/ld/ld.texi 162--- a/ld/ld.texi
163+++ b/ld/ld.texi 163+++ b/ld/ld.texi
164@@ -2655,6 +2655,18 @@ string identifying the original linked file does not change. 164@@ -2810,6 +2810,18 @@ string identifying the original linked file does not change.
165 165
166 Passing @code{none} for @var{style} disables the setting from any 166 Passing @code{none} for @var{style} disables the setting from any
167 @code{--build-id} options earlier on the command line. 167 @code{--build-id} options earlier on the command line.
@@ -181,7 +181,7 @@ index 2a93e9456ac..3eeb70607fd 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 e39170b5d94..fadc248a140 100644 184index 81cb86d51e2..cd5c2752679 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, bfd_boolean cmdline) 187@@ -117,6 +117,23 @@ ldfile_add_library_path (const char *name, bfd_boolean cmdline)
@@ -209,26 +209,23 @@ index e39170b5d94..fadc248a140 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 5ea083ebeb3..941dc5f3dc8 100644 212index b0101028321..77f5accb5d9 100644
213--- a/ld/ldlex.h 213--- a/ld/ldlex.h
214+++ b/ld/ldlex.h 214+++ b/ld/ldlex.h
215@@ -155,6 +155,11 @@ enum option_values 215@@ -161,6 +161,8 @@ enum option_values
216 OPTION_NON_CONTIGUOUS_REGIONS, 216 OPTION_CTF_VARIABLES,
217 OPTION_NON_CONTIGUOUS_REGIONS_WARNINGS, 217 OPTION_NO_CTF_VARIABLES,
218 OPTION_DEPENDENCY_FILE, 218 OPTION_CTF_SHARE_TYPES,
219+ OPTION_CTF_VARIABLES,
220+ OPTION_NO_CTF_VARIABLES,
221+ OPTION_CTF_SHARE_TYPES,
222+ OPTION_NO_POISON_SYSTEM_DIRECTORIES, 219+ OPTION_NO_POISON_SYSTEM_DIRECTORIES,
223+ OPTION_ERROR_POISON_SYSTEM_DIRECTORIES, 220+ OPTION_ERROR_POISON_SYSTEM_DIRECTORIES,
224 }; 221 };
225 222
226 /* The initial parser states. */ 223 /* The initial parser states. */
227diff --git a/ld/ldmain.c b/ld/ldmain.c 224diff --git a/ld/ldmain.c b/ld/ldmain.c
228index f5c5a336320..516ba0360e2 100644 225index 080b1c4c6c2..78d8a2df278 100644
229--- a/ld/ldmain.c 226--- a/ld/ldmain.c
230+++ b/ld/ldmain.c 227+++ b/ld/ldmain.c
231@@ -322,6 +322,8 @@ main (int argc, char **argv) 228@@ -324,6 +324,8 @@ main (int argc, char **argv)
232 command_line.warn_mismatch = TRUE; 229 command_line.warn_mismatch = TRUE;
233 command_line.warn_search_mismatch = TRUE; 230 command_line.warn_search_mismatch = TRUE;
234 command_line.check_section_addresses = -1; 231 command_line.check_section_addresses = -1;
@@ -238,25 +235,13 @@ index f5c5a336320..516ba0360e2 100644
238 /* We initialize DEMANGLING based on the environment variable 235 /* We initialize DEMANGLING based on the environment variable
239 COLLECT_NO_DEMANGLE. The gcc collect2 program will demangle the 236 COLLECT_NO_DEMANGLE. The gcc collect2 program will demangle the
240diff --git a/ld/lexsup.c b/ld/lexsup.c 237diff --git a/ld/lexsup.c b/ld/lexsup.c
241index 58c6c078325..879e7bb7658 100644 238index f005a58a045..c83292a9427 100644
242--- a/ld/lexsup.c 239--- a/ld/lexsup.c
243+++ b/ld/lexsup.c 240+++ b/ld/lexsup.c
244@@ -572,6 +572,26 @@ static const struct ld_option ld_options[] = 241@@ -591,6 +591,14 @@ static const struct ld_option ld_options[] =
245 { {"no-print-map-discarded", no_argument, NULL, OPTION_NO_PRINT_MAP_DISCARDED}, 242 " <method> is: share-unconflicted (default),\n"
246 '\0', NULL, N_("Do not show discarded sections in map file output"), 243 " share-duplicated"),
247 TWO_DASHES }, 244 TWO_DASHES },
248+ { {"ctf-variables", no_argument, NULL, OPTION_CTF_VARIABLES},
249+ '\0', NULL, N_("Emit names and types of static variables in CTF"),
250+ TWO_DASHES },
251+ { {"no-ctf-variables", no_argument, NULL, OPTION_NO_CTF_VARIABLES},
252+ '\0', NULL, N_("Do not emit names and types of static variables in CTF"),
253+ TWO_DASHES },
254+ { {"ctf-share-types=<method>", required_argument, NULL,
255+ OPTION_CTF_SHARE_TYPES},
256+ '\0', NULL, N_("How to share CTF types between translation units.\n"
257+ " <method> is: share-unconflicted (default),\n"
258+ " share-duplicated"),
259+ TWO_DASHES },
260+ { {"no-poison-system-directories", no_argument, NULL, 245+ { {"no-poison-system-directories", no_argument, NULL,
261+ OPTION_NO_POISON_SYSTEM_DIRECTORIES}, 246+ OPTION_NO_POISON_SYSTEM_DIRECTORIES},
262+ '\0', NULL, N_("Do not warn for -L options using system directories"), 247+ '\0', NULL, N_("Do not warn for -L options using system directories"),
@@ -268,7 +253,7 @@ index 58c6c078325..879e7bb7658 100644
268 }; 253 };
269 254
270 #define OPTION_COUNT ARRAY_SIZE (ld_options) 255 #define OPTION_COUNT ARRAY_SIZE (ld_options)
271@@ -1632,6 +1652,13 @@ parse_args (unsigned argc, char **argv) 256@@ -1674,6 +1682,13 @@ parse_args (unsigned argc, char **argv)
272 257
273 case OPTION_PRINT_MAP_DISCARDED: 258 case OPTION_PRINT_MAP_DISCARDED:
274 config.print_map_discarded = TRUE; 259 config.print_map_discarded = TRUE;
@@ -282,6 +267,3 @@ index 58c6c078325..879e7bb7658 100644
282 break; 267 break;
283 268
284 case OPTION_DEPENDENCY_FILE: 269 case OPTION_DEPENDENCY_FILE:
285--
2862.28.0
287