diff options
author | Khem Raj <raj.khem@gmail.com> | 2023-01-18 20:27:22 -0800 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2023-01-26 21:06:57 +0000 |
commit | 918ba17f5888fda81956564630aad1031a3645df (patch) | |
tree | 422e39c75c242302b98e5c5099384424d47ff91b /meta/recipes-devtools/binutils/binutils/0006-warn-for-uses-of-system-directories-when-cross-linki.patch | |
parent | 1afadc7e0971a7239ba21ecb5adfc76f80542247 (diff) | |
download | poky-918ba17f5888fda81956564630aad1031a3645df.tar.gz |
binutils: Upgrade to 2.40 release
(From OE-Core rev: ae2b71ca2c73111a21845c2e1329ff973558991a)
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
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 | 44 |
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 @@ | |||
1 | From 2c43b1357db6b09d1645704afd3f45be6de0cf4d Mon Sep 17 00:00:00 2001 | 1 | From b9af05e87ac8eb4fa18a75939edb661056246c30 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, 88 insertions(+), 2 deletions(-) | 63 | 9 files changed, 88 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 d4c1fc420b5..1aece0b2c29 100644 | 66 | index 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 | ||
79 | diff --git a/ld/configure b/ld/configure | 79 | diff --git a/ld/configure b/ld/configure |
80 | index e58fb7f3a35..d0a467ac101 100755 | 80 | index 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 |
120 | diff --git a/ld/configure.ac b/ld/configure.ac | 120 | diff --git a/ld/configure.ac b/ld/configure.ac |
121 | index 4331d6b1302..e2976bc2926 100644 | 121 | index 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. |
141 | diff --git a/ld/ld.h b/ld/ld.h | 141 | diff --git a/ld/ld.h b/ld/ld.h |
142 | index f3086bf30de..db5064243c7 100644 | 142 | index 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 | ||
160 | diff --git a/ld/ld.texi b/ld/ld.texi | 160 | diff --git a/ld/ld.texi b/ld/ld.texi |
161 | index eabbec8faa9..c4680e4947e 100644 | 161 | index 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 |
183 | diff --git a/ld/ldfile.c b/ld/ldfile.c | 183 | diff --git a/ld/ldfile.c b/ld/ldfile.c |
184 | index 731ae5f7aed..dd8f03fd960 100644 | 184 | index 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. */ |
211 | diff --git a/ld/ldlex.h b/ld/ldlex.h | 211 | diff --git a/ld/ldlex.h b/ld/ldlex.h |
212 | index 57ade1f754b..64007ff8684 100644 | 212 | index 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. */ |
224 | diff --git a/ld/ldmain.c b/ld/ldmain.c | 224 | diff --git a/ld/ldmain.c b/ld/ldmain.c |
225 | index 1ae90a77749..f40750fd816 100644 | 225 | index 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) |
255 | diff --git a/ld/lexsup.c b/ld/lexsup.c | 255 | diff --git a/ld/lexsup.c b/ld/lexsup.c |
256 | index 9225f71b3ce..92fb66f1fa2 100644 | 256 | index 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 | ||