Gentoo Archives: gentoo-commits

From: "Andreas K. Hüttel" <dilfridge@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/toolchain/binutils-patches:master commit in: 9999/
Date: Mon, 02 Jan 2023 23:50:12
Message-Id: 1672703391.af2d7885363daa305cf4840cb7fe72e3ada04122.dilfridge@gentoo
1 commit: af2d7885363daa305cf4840cb7fe72e3ada04122
2 Author: Andreas K. Hüttel <dilfridge <AT> gentoo <DOT> org>
3 AuthorDate: Mon Jan 2 23:49:51 2023 +0000
4 Commit: Andreas K. Hüttel <dilfridge <AT> gentoo <DOT> org>
5 CommitDate: Mon Jan 2 23:49:51 2023 +0000
6 URL: https://gitweb.gentoo.org/proj/toolchain/binutils-patches.git/commit/?id=af2d7885
7
8 Rebase patches onto master
9
10 Signed-off-by: Andreas K. Hüttel <dilfridge <AT> gentoo.org>
11
12 ...-ld-add-support-for-poisoned-system-direc.patch | 52 +++++++++++-----------
13 ...iberty-install-PIC-version-of-libiberty.a.patch | 6 +--
14 ...oo-add-with-extra-soversion-suffix-option.patch | 16 +++----
15 ...ss-hash-style-sysv-to-ld-in-the-testsuite.patch | 10 ++---
16 ...-also-libctf-optionally-a-gentoo-specific.patch | 44 +++++++++---------
17 ...0006-Gentoo-XFAIL-15-broken-ld.gold-tests.patch | 10 ++---
18 6 files changed, 69 insertions(+), 69 deletions(-)
19
20 diff --git a/9999/0001-Gentoo-gold-ld-add-support-for-poisoned-system-direc.patch b/9999/0001-Gentoo-gold-ld-add-support-for-poisoned-system-direc.patch
21 index 1a03757..c9a15e1 100644
22 --- a/9999/0001-Gentoo-gold-ld-add-support-for-poisoned-system-direc.patch
23 +++ b/9999/0001-Gentoo-gold-ld-add-support-for-poisoned-system-direc.patch
24 @@ -1,4 +1,4 @@
25 -From eaf58344eafc9b9943a0bd7e9e00130965b10274 Mon Sep 17 00:00:00 2001
26 +From febeab1e92e6aaf19a3a67a8729cbe0a444ddf59 Mon Sep 17 00:00:00 2001
27 From: Mike Frysinger <vapier@g.o>
28 Date: Tue, 20 Jul 2021 21:08:31 +0200
29 Subject: [PATCH 1/6] Gentoo: gold/ld: add support for poisoned system
30 @@ -44,7 +44,7 @@ Ported to binutils 2.39 by WANG Xuerui <xen0n@g.o>
31 11 files changed, 150 insertions(+), 2 deletions(-)
32
33 diff --git a/gold/options.cc b/gold/options.cc
34 -index 04be98a3e39..64439f8af7a 100644
35 +index c9834b66159..bd3e948a61b 100644
36 --- a/gold/options.cc
37 +++ b/gold/options.cc
38 @@ -1355,6 +1355,39 @@ General_options::finalize()
39 @@ -88,7 +88,7 @@ index 04be98a3e39..64439f8af7a 100644
40 if (this->shared() && this->is_static())
41 gold_fatal(_("-shared and -static are incompatible"));
42 diff --git a/gold/options.h b/gold/options.h
43 -index 17236eb9cb9..dad649870bf 100644
44 +index 1aa451c7711..524c7c859df 100644
45 --- a/gold/options.h
46 +++ b/gold/options.h
47 @@ -1398,6 +1398,13 @@ class General_options
48 @@ -106,10 +106,10 @@ index 17236eb9cb9..dad649870bf 100644
49 N_("Warn when skipping an incompatible library"),
50 N_("Don't warn when skipping an incompatible library"));
51 diff --git a/ld/config.in b/ld/config.in
52 -index 3916740eee4..7e70b0179ea 100644
53 +index ad0dc6a106c..d21edaddce7 100644
54 --- a/ld/config.in
55 +++ b/ld/config.in
56 -@@ -55,6 +55,9 @@
57 +@@ -58,6 +58,9 @@
58 language is requested. */
59 #undef ENABLE_NLS
60
61 @@ -120,10 +120,10 @@ index 3916740eee4..7e70b0179ea 100644
62 #undef EXTRA_SHLIB_EXTENSION
63
64 diff --git a/ld/configure b/ld/configure
65 -index 9dd3ed5f1e7..a9a67a8babe 100755
66 +index 03b9e46f56d..091d5913ee4 100755
67 --- a/ld/configure
68 +++ b/ld/configure
69 -@@ -838,6 +838,7 @@ with_lib_path
70 +@@ -839,6 +839,7 @@ with_lib_path
71 enable_targets
72 enable_64_bit_bfd
73 with_sysroot
74 @@ -131,7 +131,7 @@ index 9dd3ed5f1e7..a9a67a8babe 100755
75 enable_gold
76 enable_got
77 enable_compressed_debug_sections
78 -@@ -1519,6 +1520,8 @@ Optional Features:
79 +@@ -1521,6 +1522,8 @@ Optional Features:
80 --enable-checking enable run-time checks
81 --enable-targets alternative target configurations
82 --enable-64-bit-bfd 64-bit support (on hosts with narrower word sizes)
83 @@ -140,25 +140,25 @@ index 9dd3ed5f1e7..a9a67a8babe 100755
84 --enable-gold[=ARG] build gold [ARG={default,yes,no}]
85 --enable-got=<type> GOT handling scheme (target, single, negative,
86 multigot)
87 -@@ -11620,7 +11623,7 @@ else
88 +@@ -11625,7 +11628,7 @@ else
89 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
90 lt_status=$lt_dlunknown
91 cat > conftest.$ac_ext <<_LT_EOF
92 --#line 11623 "configure"
93 +-#line 11628 "configure"
94 +#line 11626 "configure"
95 #include "confdefs.h"
96
97 #if HAVE_DLFCN_H
98 -@@ -11726,7 +11729,7 @@ else
99 +@@ -11731,7 +11734,7 @@ else
100 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
101 lt_status=$lt_dlunknown
102 cat > conftest.$ac_ext <<_LT_EOF
103 --#line 11729 "configure"
104 +-#line 11734 "configure"
105 +#line 11732 "configure"
106 #include "confdefs.h"
107
108 #if HAVE_DLFCN_H
109 -@@ -15478,6 +15481,19 @@ fi
110 +@@ -15483,6 +15486,19 @@ fi
111
112
113
114 @@ -179,7 +179,7 @@ index 9dd3ed5f1e7..a9a67a8babe 100755
115 if test "${enable_gold+set}" = set; then :
116 enableval=$enable_gold; case "${enableval}" in
117 diff --git a/ld/configure.ac b/ld/configure.ac
118 -index f1b2f9897f8..1927d79e728 100644
119 +index 77edac3258c..a74dac63038 100644
120 --- a/ld/configure.ac
121 +++ b/ld/configure.ac
122 @@ -103,6 +103,16 @@ AC_SUBST(use_sysroot)
123 @@ -200,10 +200,10 @@ index f1b2f9897f8..1927d79e728 100644
124 dnl "install_as_default" is set to false if gold is the default linker.
125 dnl "installed_linker" is the installed BFD linker name.
126 diff --git a/ld/ld.h b/ld/ld.h
127 -index f3086bf30de..90cf1ca51e5 100644
128 +index 05649ff61b8..ce9e8229ac5 100644
129 --- a/ld/ld.h
130 +++ b/ld/ld.h
131 -@@ -162,6 +162,13 @@ typedef struct
132 +@@ -163,6 +163,13 @@ typedef struct
133 in the linker script. */
134 bool force_group_allocation;
135
136 @@ -218,10 +218,10 @@ index f3086bf30de..90cf1ca51e5 100644
137 enum endian_enum endian;
138
139 diff --git a/ld/ld.texi b/ld/ld.texi
140 -index 9daed2e7e9f..d76b534a456 100644
141 +index db3a9f09b45..5b543914e67 100644
142 --- a/ld/ld.texi
143 +++ b/ld/ld.texi
144 -@@ -2952,6 +2952,24 @@ creation of the metadata note, if one had been enabled by an earlier
145 +@@ -2960,6 +2960,24 @@ creation of the metadata note, if one had been enabled by an earlier
146 occurrence of the --package-metdata option.
147 If the linker has been built with libjansson, then the JSON string
148 will be validated.
149 @@ -247,7 +247,7 @@ index 9daed2e7e9f..d76b534a456 100644
150
151 @c man end
152 diff --git a/ld/ldfile.c b/ld/ldfile.c
153 -index 731ae5f7aed..6b67e29041b 100644
154 +index b8fd4e5d8e0..639204f4c29 100644
155 --- a/ld/ldfile.c
156 +++ b/ld/ldfile.c
157 @@ -117,6 +117,26 @@ ldfile_add_library_path (const char *name, bool cmdline)
158 @@ -278,10 +278,10 @@ index 731ae5f7aed..6b67e29041b 100644
159
160 /* Try to open a BFD for a lang_input_statement. */
161 diff --git a/ld/ldlex.h b/ld/ldlex.h
162 -index 57ade1f754b..b35a6122e09 100644
163 +index 0538f0a06a1..82685348055 100644
164 --- a/ld/ldlex.h
165 +++ b/ld/ldlex.h
166 -@@ -149,6 +149,9 @@ enum option_values
167 +@@ -151,6 +151,9 @@ enum option_values
168 OPTION_PRINT_OUTPUT_FORMAT,
169 OPTION_PRINT_SYSROOT,
170 OPTION_IGNORE_UNRESOLVED_SYMBOL,
171 @@ -292,7 +292,7 @@ index 57ade1f754b..b35a6122e09 100644
172 OPTION_POP_STATE,
173 OPTION_DISABLE_MULTIPLE_DEFS_ABS,
174 diff --git a/ld/ldmain.c b/ld/ldmain.c
175 -index d63002c994a..55364ef5773 100644
176 +index 9290a189b0d..da25dbb13b7 100644
177 --- a/ld/ldmain.c
178 +++ b/ld/ldmain.c
179 @@ -321,6 +321,13 @@ main (int argc, char **argv)
180 @@ -310,10 +310,10 @@ index d63002c994a..55364ef5773 100644
181 /* We initialize DEMANGLING based on the environment variable
182 COLLECT_NO_DEMANGLE. The gcc collect2 program will demangle the
183 diff --git a/ld/lexsup.c b/ld/lexsup.c
184 -index 299371fb775..02816ebb1b6 100644
185 +index c5960385572..950b6969cb8 100644
186 --- a/ld/lexsup.c
187 +++ b/ld/lexsup.c
188 -@@ -579,6 +579,18 @@ static const struct ld_option ld_options[] =
189 +@@ -584,6 +584,18 @@ static const struct ld_option ld_options[] =
190 OPTION_IGNORE_UNRESOLVED_SYMBOL},
191 '\0', N_("SYMBOL"),
192 N_("Unresolved SYMBOL will not cause an error or warning"), TWO_DASHES },
193 @@ -332,7 +332,7 @@ index 299371fb775..02816ebb1b6 100644
194 { {"push-state", no_argument, NULL, OPTION_PUSH_STATE},
195 '\0', NULL, N_("Push state of flags governing input file handling"),
196 TWO_DASHES },
197 -@@ -1679,6 +1691,18 @@ parse_args (unsigned argc, char **argv)
198 +@@ -1692,6 +1704,18 @@ parse_args (unsigned argc, char **argv)
199 }
200 break;
201
202 @@ -352,5 +352,5 @@ index 299371fb775..02816ebb1b6 100644
203 input_flags.pushed = xmemdup (&input_flags,
204 sizeof (input_flags),
205 --
206 -2.38.0
207 +2.38.2
208
209
210 diff --git a/9999/0002-Gentoo-libiberty-install-PIC-version-of-libiberty.a.patch b/9999/0002-Gentoo-libiberty-install-PIC-version-of-libiberty.a.patch
211 index 9a5590e..f5936c6 100644
212 --- a/9999/0002-Gentoo-libiberty-install-PIC-version-of-libiberty.a.patch
213 +++ b/9999/0002-Gentoo-libiberty-install-PIC-version-of-libiberty.a.patch
214 @@ -1,4 +1,4 @@
215 -From 14210956fa30806c5316ede3db67cac94420bb96 Mon Sep 17 00:00:00 2001
216 +From 041fec351bca1ec30fa639ee80c0810a413b2d89 Mon Sep 17 00:00:00 2001
217 From: Mike Frysinger <vapier@g.o>
218 Date: Fri, 7 Jan 2005 00:15:53 -0500
219 Subject: [PATCH 2/6] Gentoo: libiberty: install PIC version of libiberty.a
220 @@ -18,7 +18,7 @@ general are fairly low, and we'd rather have things work for all of them.
221 1 file changed, 1 insertion(+)
222
223 diff --git a/libiberty/Makefile.in b/libiberty/Makefile.in
224 -index abef3c4601b..9dfb6b6d2b0 100644
225 +index f9fbba23e2c..d37488d1bf8 100644
226 --- a/libiberty/Makefile.in
227 +++ b/libiberty/Makefile.in
228 @@ -258,6 +258,7 @@ $(TARGETLIB): $(REQUIRED_OFILES) $(EXTRA_OFILES) $(LIBOBJS)
229 @@ -30,5 +30,5 @@ index abef3c4601b..9dfb6b6d2b0 100644
230 else true; fi; \
231 if [ x"$(NOASANFLAG)" != x ]; then \
232 --
233 -2.38.0
234 +2.38.2
235
236
237 diff --git a/9999/0003-Gentoo-add-with-extra-soversion-suffix-option.patch b/9999/0003-Gentoo-add-with-extra-soversion-suffix-option.patch
238 index 81265e4..8921582 100644
239 --- a/9999/0003-Gentoo-add-with-extra-soversion-suffix-option.patch
240 +++ b/9999/0003-Gentoo-add-with-extra-soversion-suffix-option.patch
241 @@ -1,4 +1,4 @@
242 -From 96aa5434285fe8006fd671634fe753cf69451043 Mon Sep 17 00:00:00 2001
243 +From b1e693934cde0f00e0b2fea50753e0f965bf7f88 Mon Sep 17 00:00:00 2001
244 From: Sergei Trofimovich <slyfox@g.o>
245 Date: Tue, 20 Jul 2021 21:12:38 +0200
246 Subject: [PATCH 3/6] Gentoo: add --with-extra-soversion-suffix= option
247 @@ -34,7 +34,7 @@ Ported to binutils 2.37 by Andreas K. Hüttel <dilfridge@g.o>
248 4 files changed, 29 insertions(+)
249
250 diff --git a/bfd/Makefile.am b/bfd/Makefile.am
251 -index 794d992310d..34b71212d75 100644
252 +index 75d21db88d1..9137f025b87 100644
253 --- a/bfd/Makefile.am
254 +++ b/bfd/Makefile.am
255 @@ -64,6 +64,8 @@ bfdinclude_HEADERS += $(INCDIR)/plugin-api.h
256 @@ -46,7 +46,7 @@ index 794d992310d..34b71212d75 100644
257 # bfd.h goes here, for now
258 BFD_H = bfd.h
259
260 -@@ -992,6 +994,9 @@ bfdver.h: $(srcdir)/version.h $(srcdir)/development.sh $(srcdir)/Makefile.in
261 +@@ -994,6 +996,9 @@ bfdver.h: $(srcdir)/version.h $(srcdir)/development.sh $(srcdir)/Makefile.in
262 bfd_version_string="\"$(VERSION).$${bfd_version_date}\"" ;\
263 bfd_soversion="$(VERSION).$${bfd_version_date}" ;\
264 fi ;\
265 @@ -57,7 +57,7 @@ index 794d992310d..34b71212d75 100644
266 -e "s,@bfd_version_string@,$$bfd_version_string," \
267 -e "s,@bfd_version_package@,$$bfd_version_package," \
268 diff --git a/bfd/Makefile.in b/bfd/Makefile.in
269 -index bdf12c99cfd..e4c613d7406 100644
270 +index 0b0bb1a950e..0ee27ecc111 100644
271 --- a/bfd/Makefile.in
272 +++ b/bfd/Makefile.in
273 @@ -355,6 +355,7 @@ ECHO_T = @ECHO_T@
274 @@ -68,7 +68,7 @@ index bdf12c99cfd..e4c613d7406 100644
275 FGREP = @FGREP@
276 GENCAT = @GENCAT@
277 GMSGFMT = @GMSGFMT@
278 -@@ -2471,6 +2472,9 @@ bfdver.h: $(srcdir)/version.h $(srcdir)/development.sh $(srcdir)/Makefile.in
279 +@@ -2474,6 +2475,9 @@ bfdver.h: $(srcdir)/version.h $(srcdir)/development.sh $(srcdir)/Makefile.in
280 bfd_version_string="\"$(VERSION).$${bfd_version_date}\"" ;\
281 bfd_soversion="$(VERSION).$${bfd_version_date}" ;\
282 fi ;\
283 @@ -79,7 +79,7 @@ index bdf12c99cfd..e4c613d7406 100644
284 -e "s,@bfd_version_string@,$$bfd_version_string," \
285 -e "s,@bfd_version_package@,$$bfd_version_package," \
286 diff --git a/bfd/configure b/bfd/configure
287 -index b72e885f711..b464614592d 100755
288 +index 5af8af2ee37..42bd8f32145 100755
289 --- a/bfd/configure
290 +++ b/bfd/configure
291 @@ -695,6 +695,7 @@ WARN_CFLAGS
292 @@ -124,7 +124,7 @@ index b72e885f711..b464614592d 100755
293
294 # Check whether --with-pkgversion was given.
295 diff --git a/bfd/configure.ac b/bfd/configure.ac
296 -index 7a0ad0ffe33..2910cc9121f 100644
297 +index 82a3d1f832e..2b882c735d4 100644
298 --- a/bfd/configure.ac
299 +++ b/bfd/configure.ac
300 @@ -168,6 +168,13 @@ AC_ARG_WITH(separate-debug-dir,
301 @@ -142,5 +142,5 @@ index 7a0ad0ffe33..2910cc9121f 100644
302 ACX_BUGURL([https://sourceware.org/bugzilla/])
303
304 --
305 -2.38.0
306 +2.38.2
307
308
309 diff --git a/9999/0004-Gentoo-Pass-hash-style-sysv-to-ld-in-the-testsuite.patch b/9999/0004-Gentoo-Pass-hash-style-sysv-to-ld-in-the-testsuite.patch
310 index 484c657..4411e88 100644
311 --- a/9999/0004-Gentoo-Pass-hash-style-sysv-to-ld-in-the-testsuite.patch
312 +++ b/9999/0004-Gentoo-Pass-hash-style-sysv-to-ld-in-the-testsuite.patch
313 @@ -1,4 +1,4 @@
314 -From eeb95d2a0cda143dad4d905429ced8a339c486e3 Mon Sep 17 00:00:00 2001
315 +From c45749c4cc5750db631e16b301133f15adfb94c7 Mon Sep 17 00:00:00 2001
316 From: =?UTF-8?q?Andreas=20K=2E=20H=C3=BCttel?= <dilfridge@g.o>
317 Date: Tue, 20 Jul 2021 21:15:24 +0200
318 Subject: [PATCH 4/6] Gentoo: Pass --hash-style=sysv to ld in the testsuite
319 @@ -9,10 +9,10 @@ Subject: [PATCH 4/6] Gentoo: Pass --hash-style=sysv to ld in the testsuite
320 2 files changed, 15 insertions(+), 3 deletions(-)
321
322 diff --git a/binutils/testsuite/lib/binutils-common.exp b/binutils/testsuite/lib/binutils-common.exp
323 -index ccc33a827b4..f7aecf7edc2 100644
324 +index b0190ac51ac..aeef8e55b87 100644
325 --- a/binutils/testsuite/lib/binutils-common.exp
326 +++ b/binutils/testsuite/lib/binutils-common.exp
327 -@@ -1310,7 +1310,7 @@ proc run_dump_test { name {extra_options {}} } {
328 +@@ -1308,7 +1308,7 @@ proc run_dump_test { name {extra_options {}} } {
329
330 # Add -L$srcdir/$subdir so that the linker command can use
331 # linker scripts in the source directory.
332 @@ -22,7 +22,7 @@ index ccc33a827b4..f7aecf7edc2 100644
333
334 # If needed then check for, or add a -Map option.
335 diff --git a/ld/testsuite/lib/ld-lib.exp b/ld/testsuite/lib/ld-lib.exp
336 -index ec27388a72e..fc7292a40a7 100644
337 +index 47e86a7b27c..55192a05f35 100644
338 --- a/ld/testsuite/lib/ld-lib.exp
339 +++ b/ld/testsuite/lib/ld-lib.exp
340 @@ -171,7 +171,7 @@ proc default_ld_relocate { ld target objects } {
341 @@ -57,5 +57,5 @@ index ec27388a72e..fc7292a40a7 100644
342
343 # We don't care if we get a warning about a non-existent start
344 --
345 -2.38.0
346 +2.38.2
347
348
349 diff --git a/9999/0005-Gentoo-Give-also-libctf-optionally-a-gentoo-specific.patch b/9999/0005-Gentoo-Give-also-libctf-optionally-a-gentoo-specific.patch
350 index 2133994..3ac7217 100644
351 --- a/9999/0005-Gentoo-Give-also-libctf-optionally-a-gentoo-specific.patch
352 +++ b/9999/0005-Gentoo-Give-also-libctf-optionally-a-gentoo-specific.patch
353 @@ -1,4 +1,4 @@
354 -From ee4de1adb09cbfcad39e544e2f05392b210b550a Mon Sep 17 00:00:00 2001
355 +From ffb569acc3bfa5a22cc6581338108f79fd3d8c55 Mon Sep 17 00:00:00 2001
356 From: =?UTF-8?q?Andreas=20K=2E=20H=C3=BCttel?= <dilfridge@g.o>
357 Date: Sat, 24 Jul 2021 15:20:16 +0200
358 Subject: [PATCH 5/6] Gentoo: Give also libctf optionally a gentoo-specific
359 @@ -12,7 +12,7 @@ Subject: [PATCH 5/6] Gentoo: Give also libctf optionally a gentoo-specific
360 4 files changed, 64 insertions(+), 4 deletions(-)
361
362 diff --git a/libctf/Makefile.am b/libctf/Makefile.am
363 -index 27e90f0ba36..4990a20efa3 100644
364 +index c4809f70bae..5571eef8aa1 100644
365 --- a/libctf/Makefile.am
366 +++ b/libctf/Makefile.am
367 @@ -26,6 +26,9 @@ info_TEXINFOS =
368 @@ -45,10 +45,10 @@ index 27e90f0ba36..4990a20efa3 100644
369 libctf_nobfd_la_CPPFLAGS = $(AM_CPPFLAGS) -DNOBFD=1
370 libctf_nobfd_la_SOURCES = ctf-archive.c ctf-dump.c ctf-create.c ctf-decl.c ctf-error.c \
371 diff --git a/libctf/Makefile.in b/libctf/Makefile.in
372 -index 036a63fa720..e971f0b31bb 100644
373 +index f2b852e3fae..14fc79bf5a9 100644
374 --- a/libctf/Makefile.in
375 +++ b/libctf/Makefile.in
376 -@@ -383,6 +383,7 @@ AUTOCONF = @AUTOCONF@
377 +@@ -381,6 +381,7 @@ AUTOCONF = @AUTOCONF@
378 AUTOHEADER = @AUTOHEADER@
379 AUTOMAKE = @AUTOMAKE@
380 AWK = @AWK@
381 @@ -56,7 +56,7 @@ index 036a63fa720..e971f0b31bb 100644
382 CATALOGS = @CATALOGS@
383 CATOBJEXT = @CATOBJEXT@
384 CC = @CC@
385 -@@ -405,6 +406,7 @@ EXEEXT = @EXEEXT@
386 +@@ -403,6 +404,7 @@ EXEEXT = @EXEEXT@
387
388 # Setup the testing framework, if you have one
389 EXPECT = expect
390 @@ -64,7 +64,7 @@ index 036a63fa720..e971f0b31bb 100644
391 FGREP = @FGREP@
392 GENCAT = @GENCAT@
393 GMSGFMT = @GMSGFMT@
394 -@@ -547,8 +549,13 @@ AM_CFLAGS = -std=gnu99 @ac_libctf_warn_cflags@ @warn@ @c_warn@ @WARN_PEDANTIC@ @
395 +@@ -540,8 +542,13 @@ AM_CFLAGS = -std=gnu99 @ac_libctf_warn_cflags@ @warn@ @c_warn@ @WARN_PEDANTIC@ @
396 @INSTALL_LIBBFD_FALSE@include_HEADERS =
397 @INSTALL_LIBBFD_TRUE@include_HEADERS = $(INCDIR)/ctf.h $(INCDIR)/ctf-api.h
398 @INSTALL_LIBBFD_FALSE@noinst_LTLIBRARIES = libctf.la libctf-nobfd.la
399 @@ -80,7 +80,7 @@ index 036a63fa720..e971f0b31bb 100644
400 libctf_nobfd_la_CPPFLAGS = $(AM_CPPFLAGS) -DNOBFD=1
401 libctf_nobfd_la_SOURCES = ctf-archive.c ctf-dump.c ctf-create.c \
402 diff --git a/libctf/configure b/libctf/configure
403 -index 176b3d6b918..31fe5f72a90 100755
404 +index 17463a74cca..b0b5c78a7a6 100755
405 --- a/libctf/configure
406 +++ b/libctf/configure
407 @@ -646,6 +646,10 @@ BUILD_INFO_FALSE
408 @@ -93,43 +93,43 @@ index 176b3d6b918..31fe5f72a90 100755
409 +EXTRA_SOVERSION_SUFFIX
410 ENABLE_LIBCTF_HASH_DEBUGGING_FALSE
411 ENABLE_LIBCTF_HASH_DEBUGGING_TRUE
412 - ZSTD_LIBS
413 -@@ -813,6 +817,7 @@ enable_install_libbfd
414 + zlibinc
415 +@@ -807,6 +811,7 @@ enable_maintainer_mode
416 + enable_install_libbfd
417 with_system_zlib
418 - with_zstd
419 enable_libctf_hash_debugging
420 +with_extra_soversion_suffix
421 '
422 ac_precious_vars='build_alias
423 host_alias
424 -@@ -1477,6 +1482,8 @@ Optional Packages:
425 +@@ -1464,6 +1469,8 @@ Optional Packages:
426 + both]
427 + --with-gnu-ld assume the C compiler uses GNU ld [default=no]
428 --with-system-zlib use installed libz
429 - --with-zstd support zstd compressed debug sections
430 - (default=auto)
431 + --with-extra-soversion-suffix=SUFFIX
432 + Append '.SUFFIX' to SONAME [[default=]]
433
434 Some influential environment variables:
435 CC C compiler command
436 -@@ -11655,7 +11662,7 @@ else
437 +@@ -11632,7 +11639,7 @@ else
438 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
439 lt_status=$lt_dlunknown
440 cat > conftest.$ac_ext <<_LT_EOF
441 --#line 11658 "configure"
442 +-#line 11635 "configure"
443 +#line 11665 "configure"
444 #include "confdefs.h"
445
446 #if HAVE_DLFCN_H
447 -@@ -11761,7 +11768,7 @@ else
448 +@@ -11738,7 +11745,7 @@ else
449 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
450 lt_status=$lt_dlunknown
451 cat > conftest.$ac_ext <<_LT_EOF
452 --#line 11764 "configure"
453 +-#line 11741 "configure"
454 +#line 11771 "configure"
455 #include "confdefs.h"
456
457 #if HAVE_DLFCN_H
458 -@@ -13209,6 +13216,26 @@ else
459 +@@ -14305,6 +14312,26 @@ else
460 fi
461
462
463 @@ -156,7 +156,7 @@ index 176b3d6b918..31fe5f72a90 100755
464 # Similar to GDB_AC_CHECK_BFD.
465 OLD_CFLAGS=$CFLAGS
466 OLD_LDFLAGS=$LDFLAGS
467 -@@ -14101,6 +14128,10 @@ if test -z "${ENABLE_LIBCTF_HASH_DEBUGGING_TRUE}" && test -z "${ENABLE_LIBCTF_HA
468 +@@ -15199,6 +15226,10 @@ if test -z "${ENABLE_LIBCTF_HASH_DEBUGGING_TRUE}" && test -z "${ENABLE_LIBCTF_HA
469 as_fn_error $? "conditional \"ENABLE_LIBCTF_HASH_DEBUGGING\" was never defined.
470 Usually this means the macro was only invoked conditionally." "$LINENO" 5
471 fi
472 @@ -168,10 +168,10 @@ index 176b3d6b918..31fe5f72a90 100755
473 if test -z "${NEED_CTF_QSORT_R_TRUE}" && test -z "${NEED_CTF_QSORT_R_FALSE}"; then
474 as_fn_error $? "conditional \"NEED_CTF_QSORT_R\" was never defined.
475 diff --git a/libctf/configure.ac b/libctf/configure.ac
476 -index 2e2ccf4b624..fbe5f27241b 100644
477 +index a0148a4c328..1901ade381d 100644
478 --- a/libctf/configure.ac
479 +++ b/libctf/configure.ac
480 -@@ -79,6 +79,16 @@ if test "${enable_libctf_hash_debugging}" = yes; then
481 +@@ -76,6 +76,16 @@ if test "${enable_libctf_hash_debugging}" = yes; then
482 fi
483 AM_CONDITIONAL(ENABLE_LIBCTF_HASH_DEBUGGING, test "${enable_libctf_hash_debugging}" = yes)
484
485 @@ -189,5 +189,5 @@ index 2e2ccf4b624..fbe5f27241b 100644
486 OLD_CFLAGS=$CFLAGS
487 OLD_LDFLAGS=$LDFLAGS
488 --
489 -2.38.0
490 +2.38.2
491
492
493 diff --git a/9999/0006-Gentoo-XFAIL-15-broken-ld.gold-tests.patch b/9999/0006-Gentoo-XFAIL-15-broken-ld.gold-tests.patch
494 index 23e7576..303942b 100644
495 --- a/9999/0006-Gentoo-XFAIL-15-broken-ld.gold-tests.patch
496 +++ b/9999/0006-Gentoo-XFAIL-15-broken-ld.gold-tests.patch
497 @@ -1,4 +1,4 @@
498 -From 85c162be0eea0006c9d73fae243d771f7d0c9756 Mon Sep 17 00:00:00 2001
499 +From a5ae5bca2b691999092655fe0df9b6c22e76ffaa Mon Sep 17 00:00:00 2001
500 From: =?UTF-8?q?Andreas=20K=2E=20H=C3=BCttel?= <dilfridge@g.o>
501 Date: Sat, 31 Jul 2021 01:18:18 +0200
502 Subject: [PATCH 6/6] Gentoo: XFAIL 15 broken ld.gold tests
503 @@ -16,7 +16,7 @@ Bug: https://sourceware.org/bugzilla/show_bug.cgi?id=27303
504 2 files changed, 18 insertions(+), 4 deletions(-)
505
506 diff --git a/gold/testsuite/Makefile.am b/gold/testsuite/Makefile.am
507 -index 843fd0d197c..4940119c190 100644
508 +index df9405c1aac..749921633b2 100644
509 --- a/gold/testsuite/Makefile.am
510 +++ b/gold/testsuite/Makefile.am
511 @@ -1,5 +1,11 @@
512 @@ -32,7 +32,7 @@ index 843fd0d197c..4940119c190 100644
513 # system and the host system are the same. So these tests will not
514 # work when building with a cross-compiler.
515 diff --git a/gold/testsuite/Makefile.in b/gold/testsuite/Makefile.in
516 -index 21804df6573..6a4e2b5c5bb 100644
517 +index fb0eb12553b..b506a7f8da7 100644
518 --- a/gold/testsuite/Makefile.in
519 +++ b/gold/testsuite/Makefile.in
520 @@ -15,10 +15,6 @@
521 @@ -61,7 +61,7 @@ index 21804df6573..6a4e2b5c5bb 100644
522 check_PROGRAMS = $(am__EXEEXT_1) $(am__EXEEXT_2) $(am__EXEEXT_3) \
523 $(am__EXEEXT_4) $(am__EXEEXT_5) $(am__EXEEXT_6) \
524 $(am__EXEEXT_7) $(am__EXEEXT_8) $(am__EXEEXT_9) \
525 -@@ -2757,6 +2761,10 @@ top_srcdir = @top_srcdir@
526 +@@ -2759,6 +2763,10 @@ top_srcdir = @top_srcdir@
527 zlibdir = @zlibdir@
528 zlibinc = @zlibinc@
529
530 @@ -73,5 +73,5 @@ index 21804df6573..6a4e2b5c5bb 100644
531 AUTOMAKE_OPTIONS = foreign -Wno-portability
532
533 --
534 -2.38.0
535 +2.38.2