commit 31ada59
Michael Forney
·
2026-04-29 23:56:39 +0000 UTC
parent a2131bf
binutils: Update to 2.46.0
18 files changed,
+217,
-337
+1,
-1
1@@ -3,7 +3,7 @@
2 /fontconfig-2.15.0.tar.gz
3 /liberation-fonts-ttf-2.1.5.tar.gz
4 /bc-1.08.2.tar.gz
5-/binutils-2.39.tar.xz
6+/binutils-2.46.0.tar.xz
7 /byacc-20260126.tgz
8 /cacert.pem
9 /flex-2.6.4.tar.gz
+3,
-3
1@@ -20,12 +20,13 @@ return {
2 moxie={'moxie-dis.c', 'moxie-opc.c'},
3 h8300={'h8300-dis.c'},
4 hppa={'hppa-dis.c'},
5- i386={'i386-dis.c', 'i386-opc.c'},
6+ i386={'i386-dis.c'},
7 iamcu={'i386-dis.c', 'i386-opc.c'},
8 ia64={'ia64-dis.c', 'ia64-opc.c'},
9 ip2k={'ip2k-asm.c', 'ip2k-desc.c', 'ip2k-dis.c', 'ip2k-ibld.c', 'ip2k-opc.c'},
10 epiphany={'epiphany-asm.c', 'epiphany-desc.c', 'epiphany-dis.c', 'epiphany-ibld.c', 'epiphany-opc.c'},
11 iq2000={'iq2000-asm.c', 'iq2000-desc.c', 'iq2000-dis.c', 'iq2000-ibld.c', 'iq2000-opc.c'},
12+ kvx={'kvx-opc.c', 'kvx-dis.c'},
13 lm32={'lm32-asm.c', 'lm32-desc.c', 'lm32-dis.c', 'lm32-ibld.c', 'lm32-opc.c', 'lm32-opinst.c'},
14 m32c={'m32c-asm.c', 'm32c-desc.c', 'm32c-dis.c', 'm32c-ibld.c', 'm32c-opc.c'},
15 m32r={'m32r-asm.c', 'm32r-desc.c', 'm32r-dis.c', 'm32r-ibld.c', 'm32r-opc.c', 'm32r-opinst.c'},
16@@ -47,7 +48,6 @@ return {
17 msp430={'msp430-dis.c', 'msp430-decode.c'},
18 nds32={'nds32-asm.c', 'nds32-dis.c'},
19 nfp={'nfp-dis.c'},
20- nios2={'nios2-dis.c', 'nios2-opc.c'},
21 ns32k={'ns32k-dis.c'},
22 or1k={'or1k-asm.c', 'or1k-desc.c', 'or1k-dis.c', 'or1k-ibld.c', 'or1k-opc.c'},
23 pdp11={'pdp11-dis.c', 'pdp11-opc.c'},
24@@ -84,6 +84,6 @@ return {
25 xtensa={'xtensa-dis.c'},
26 z80={'z80-dis.c'},
27 z8k={'z8k-dis.c'},
28- bpf={'bpf-asm.c', 'bpf-desc.c', 'bpf-dis.c', 'bpf-ibld.c', 'bpf-opc.c'},
29+ bpf={'bpf-dis.c', 'bpf-opc.c'},
30 loongarch={'loongarch-dis.c', 'loongarch-opc.c', 'loongarch-coder.c'},
31 }
+24,
-5
1@@ -2,14 +2,18 @@
2 # error config.h must be #included before system headers
3 #endif
4 #define __CONFIG_H__ 1
5+/* #undef AC_APPLE_UNIVERSAL_BUILD */
6 #ifdef __x86_64__
7 #define CORE_HEADER "hosts/x86-64linux.h"
8 #endif
9 #define DEFAULT_LD_Z_SEPARATE_CODE 1
10 /* #undef ENABLE_CHECKING */
11 /* #undef ENABLE_NLS */
12+/* #undef HAVE_CFLOCALECOPYPREFERREDLANGUAGES */
13+/* #undef HAVE_CFPREFERENCESCOPYAPPVALUE */
14+/* #undef HAVE_DCGETTEXT */
15 #define HAVE_DECL_ASPRINTF 1
16-#define HAVE_DECL_BASENAME 1
17+#define HAVE_DECL_BASENAME 0
18 #define HAVE_DECL_FFS 1
19 #define HAVE_DECL_FOPEN64 0
20 #define HAVE_DECL_FSEEKO 1
21@@ -18,7 +22,9 @@
22 #define HAVE_DECL_FTELLO64 0
23 #define HAVE_DECL_STPCPY 1
24 #define HAVE_DECL_STRNLEN 1
25+#define HAVE_DECL_STRTOULL 1
26 #define HAVE_DECL_VASPRINTF 1
27+#define HAVE_DECL____LC_CODEPAGE_FUNC 0
28 #define HAVE_DLFCN_H 1
29 #define HAVE_FCNTL 1
30 #define HAVE_FCNTL_H 1
31@@ -33,8 +39,10 @@
32 #define HAVE_GETGID 1
33 #define HAVE_GETPAGESIZE 1
34 #define HAVE_GETRLIMIT 1
35+/* #undef HAVE_GETTEXT */
36 #define HAVE_GETUID 1
37 #define HAVE_HIDDEN 1
38+/* #undef HAVE_ICONV */
39 #define HAVE_INTTYPES_H 1
40 /* #undef HAVE_LWPSTATUS_T */
41 /* #undef HAVE_LWPSTATUS_T_PR_CONTEXT */
42@@ -75,25 +83,27 @@
43 #define HAVE_UNISTD_H 1
44 /* #undef HAVE_WIN32_PSTATUS_T */
45 /* #undef HAVE_WINDOWS_H */
46+/* #undef HAVE_ZSTD */
47 #define LT_OBJDIR ".libs/"
48 #define PACKAGE "bfd"
49 #define PACKAGE_BUGREPORT ""
50 #define PACKAGE_NAME "bfd"
51-#define PACKAGE_STRING "bfd 2.39"
52+#define PACKAGE_STRING "bfd 2.46.0"
53 #define PACKAGE_TARNAME "bfd"
54 #define PACKAGE_URL ""
55-#define PACKAGE_VERSION "2.39"
56+#define PACKAGE_VERSION "2.46.0"
57 #define SIZEOF_INT 4
58 #define SIZEOF_LONG 8
59 #define SIZEOF_LONG_LONG 8
60 #define SIZEOF_OFF_T 8
61 #define SIZEOF_VOID_P 8
62 #define STDC_HEADERS 1
63+#define TLS _Thread_local
64 /* #undef TRAD_HEADER */
65 /* #undef USE_64_BIT_ARCHIVE */
66 /* #undef USE_BINARY_FOPEN */
67 /* #undef USE_MINGW64_LEADING_UNDERSCORES */
68-/* #undef USE_MMAP */
69+#define USE_MMAP 1
70 #define USE_SECUREPLT 1
71 #ifndef _ALL_SOURCE
72 # define _ALL_SOURCE 1
73@@ -110,7 +120,16 @@
74 #ifndef __EXTENSIONS__
75 # define __EXTENSIONS__ 1
76 #endif
77-#define VERSION "2.39"
78+#define VERSION "2.46.0"
79+#if defined AC_APPLE_UNIVERSAL_BUILD
80+# if defined __BIG_ENDIAN__
81+# define WORDS_BIGENDIAN 1
82+# endif
83+#else
84+# ifndef WORDS_BIGENDIAN
85+/* # undef WORDS_BIGENDIAN */
86+# endif
87+#endif
88 #ifndef _DARWIN_USE_64_BIT_INODE
89 # define _DARWIN_USE_64_BIT_INODE 1
90 #endif
+22,
-8
1@@ -2,7 +2,9 @@
2 # error config.h must be #included before system headers
3 #endif
4 #define __CONFIG_H__ 1
5+/* #undef AC_APPLE_UNIVERSAL_BUILD */
6 #define DEFAULT_AR_DETERMINISTIC 1
7+#define DEFAULT_FOR_COLORED_DISASSEMBLY 0
8 #define DEFAULT_FOR_FOLLOW_LINKS 1
9 #define DEFAULT_F_FOR_IFUNC_SYMBOLS 0
10 #define DEFAULT_STRINGS_ALL 1
11@@ -10,30 +12,34 @@
12 /* #undef ENABLE_LIBCTF */
13 /* #undef ENABLE_NLS */
14 #define EXECUTABLE_SUFFIX ""
15-#define HAVE_DECL_ASPRINTF 1
16+/* #undef HAVE_CFLOCALECOPYPREFERREDLANGUAGES */
17+/* #undef HAVE_CFPREFERENCESCOPYAPPVALUE */
18+/* #undef HAVE_DCGETTEXT */
19 #define HAVE_DECL_ENVIRON 1
20 #define HAVE_DECL_GETC_UNLOCKED 1
21 #define HAVE_DECL_GETOPT 1
22-#define HAVE_DECL_SBRK 1
23 #define HAVE_DECL_STPCPY 1
24 #define HAVE_DECL_STRNLEN 1
25 #define HAVE_DLFCN_H 1
26 /* #undef HAVE_EXECUTABLE_SUFFIX */
27 #define HAVE_FCNTL_H 1
28+#define HAVE_FSEEKO 1
29+/* #undef HAVE_FSEEKO64 */
30 #define HAVE_GETC_UNLOCKED 1
31 #define HAVE_GETPAGESIZE 1
32+/* #undef HAVE_GETTEXT */
33 #define HAVE_GOOD_UTIME_H 1
34 #define HAVE_ICONV 1
35 #define HAVE_INTTYPES_H 1
36 #define HAVE_LC_MESSAGES 1
37 /* #undef HAVE_LIBDEBUGINFOD */
38+/* #undef HAVE_LIBDEBUGINFOD_FIND_SECTION */
39 #define HAVE_MBSTATE_T 1
40 #define HAVE_MEMORY_H 1
41 #define HAVE_MKDTEMP 1
42 #define HAVE_MKSTEMP 1
43 #define HAVE_MMAP 1
44 /* #undef HAVE_MSGPACK */
45-#define HAVE_SBRK 1
46 #define HAVE_STDINT_H 1
47 #define HAVE_STDLIB_H 1
48 #define HAVE_STRINGS_H 1
49@@ -52,17 +58,16 @@
50 #define HAVE_UTIMENSAT 1
51 #define HAVE_UTIMES 1
52 /* #undef HAVE_WINDOWS_H */
53+/* #undef HAVE_ZSTD */
54 #define ICONV_CONST
55 #define LT_OBJDIR ".libs/"
56 #define PACKAGE "binutils"
57 #define PACKAGE_BUGREPORT ""
58 #define PACKAGE_NAME "binutils"
59-#define PACKAGE_STRING "binutils 2.39"
60+#define PACKAGE_STRING "binutils 2.46.0"
61 #define PACKAGE_TARNAME "binutils"
62 #define PACKAGE_URL ""
63-#define PACKAGE_VERSION "2.39"
64-#define SIZEOF_LONG 8
65-#define SIZEOF_LONG_LONG 8
66+#define PACKAGE_VERSION "2.46.0"
67 #define STDC_HEADERS 1
68 /* #undef TARGET */
69 #define TARGET_PREPENDS_UNDERSCORE 0
70@@ -83,7 +88,16 @@
71 #ifndef __EXTENSIONS__
72 # define __EXTENSIONS__ 1
73 #endif
74-#define VERSION "2.39"
75+#define VERSION "2.46.0"
76+#if defined AC_APPLE_UNIVERSAL_BUILD
77+# if defined __BIG_ENDIAN__
78+# define WORDS_BIGENDIAN 1
79+# endif
80+#else
81+# ifndef WORDS_BIGENDIAN
82+/* # undef WORDS_BIGENDIAN */
83+# endif
84+#endif
85 /* #undef YYTEXT_POINTER */
86 #ifndef _DARWIN_USE_64_BIT_INODE
87 # define _DARWIN_USE_64_BIT_INODE 1
+13,
-7
1@@ -7,26 +7,32 @@
2 /* #undef BROKEN_ASSERT */
3 /* #undef CROSS_COMPILE */
4 /* #undef DEFAULT_ARCH */
5+#define DEFAULT_COMPRESSED_DEBUG_ALGORITHM COMPRESS_DEBUG_GABI_ZLIB
6 /* #undef DEFAULT_CRIS_ARCH */
7 /* #undef DEFAULT_EMULATION */
8 #define DEFAULT_FLAG_COMPRESS_DEBUG 1
9 #define DEFAULT_GENERATE_BUILD_NOTES 0
10 #define DEFAULT_GENERATE_ELF_STT_COMMON 0
11-#define DEFAULT_GENERATE_X86_RELAX_RELOCATIONS 1
12 #define DEFAULT_MIPS_FIX_LOONGSON3_LLSC 0
13 /* #undef DEFAULT_RISCV_ARCH_WITH_EXT */
14 #define DEFAULT_RISCV_ATTR 1
15 /* #undef DEFAULT_RISCV_ISA_SPEC */
16 /* #undef DEFAULT_RISCV_PRIV_SPEC */
17+#define DEFAULT_SFRAME 0
18+#define DEFAULT_X86_TLS_CHECK 1
19 #define DEFAULT_X86_USED_NOTE 1
20 /* #undef EMULATIONS */
21 /* #undef ENABLE_CHECKING */
22 /* #undef ENABLE_NLS */
23-#define HAVE_DECL_ASPRINTF 1
24+/* #undef HAVE_CFLOCALECOPYPREFERREDLANGUAGES */
25+/* #undef HAVE_CFPREFERENCESCOPYAPPVALUE */
26+/* #undef HAVE_DCGETTEXT */
27 #define HAVE_DECL_GETOPT 1
28 #define HAVE_DECL_MEMPCPY 1
29 #define HAVE_DECL_STPCPY 1
30 #define HAVE_DLFCN_H 1
31+/* #undef HAVE_GETTEXT */
32+/* #undef HAVE_ICONV */
33 #define HAVE_INTTYPES_H 1
34 #define HAVE_LC_MESSAGES 1
35 #define HAVE_MEMORY_H 1
36@@ -42,6 +48,7 @@
37 /* #undef HAVE_TM_GMTOFF */
38 #define HAVE_UNISTD_H 1
39 /* #undef HAVE_WINDOWS_H */
40+/* #undef HAVE_ZSTD */
41 /* #undef I386COFF */
42 #define LT_OBJDIR ".libs/"
43 /* #undef MIPS_CPU_STRING_DEFAULT */
44@@ -67,10 +74,10 @@
45 #define PACKAGE "gas"
46 #define PACKAGE_BUGREPORT ""
47 #define PACKAGE_NAME "gas"
48-#define PACKAGE_STRING "gas 2.39"
49+#define PACKAGE_STRING "gas 2.46.0"
50 #define PACKAGE_TARNAME "gas"
51 #define PACKAGE_URL ""
52-#define PACKAGE_VERSION "2.39"
53+#define PACKAGE_VERSION "2.46.0"
54 #define STDC_HEADERS 1
55 /* #undef STRICTCOFF */
56 /* #undef TARGET_ALIAS */
57@@ -78,12 +85,11 @@
58 /* #undef TARGET_CANONICAL */
59 /* #undef TARGET_CPU */
60 #define TARGET_OS "linux-musl"
61-/* #undef TARGET_SOLARIS_COMMENT */
62 #define TARGET_VENDOR "unknown"
63 /* #undef TARGET_WITH_CPU */
64 /* #undef USE_BINARY_FOPEN */
65+/* #undef USE_EF_MIPS_ABI_O32 */
66 /* #undef USE_EMULATIONS */
67-/* #undef USE_E_MIPS_ABI_O32 */
68 #ifndef _ALL_SOURCE
69 # define _ALL_SOURCE 1
70 #endif
71@@ -100,7 +106,7 @@
72 # define __EXTENSIONS__ 1
73 #endif
74 /* #undef USING_CGEN */
75-#define VERSION "2.39"
76+#define VERSION "2.46.0"
77 #if defined AC_APPLE_UNIVERSAL_BUILD
78 # if defined __BIG_ENDIAN__
79 # define WORDS_BIGENDIAN 1
+31,
-15
1@@ -17,7 +17,7 @@ if not targ then
2 return
3 end
4
5-local version = setmetatable({2, 39}, {__index=function() return 0 end})
6+local version = {2, 46, 0}
7 local emuls = targets[arch].emuls
8 local selarchs = {}
9 for _, a in pairs(targets[arch].archs) do selarchs[a] = true end
10@@ -55,7 +55,7 @@ sub('libiberty.ninja', function()
11 fnmatch.c fopen_unlocked.c
12 getopt.c getopt1.c getpwd.c
13 getruntime.c hashtab.c hex.c
14- lbasename.c lrealpath.c
15+ lbasename.c ldirname.c lrealpath.c
16 make-relative-prefix.c make-temp-file.c
17 objalloc.c
18 obstack.c
19@@ -78,8 +78,19 @@ sub('libiberty.ninja', function()
20 )]])
21 end)
22
23+sub('libsframe.ninja', function()
24+ cflags{
25+ '-I $dir/libsframe',
26+ '-I $srcdir/libctf', -- for swap.h
27+ }
28+ lib('libsframe.a', 'libsframe/(sframe.c sframe-dump.c sframe-error.c)')
29+end)
30+
31 sub('bfd.ninja', function()
32- cflags{'-I $dir/bfd'}
33+ cflags{
34+ '-D OBJ_MAYBE_ELF',
35+ '-I $dir/bfd',
36+ }
37 build('sed', '$outdir/bfd/bfd.h', '$srcdir/bfd/bfd-in2.h', {expr={
38 '-e s,@supports_plugins@,0,',
39 '-e s,@wordsize@,64,',
40@@ -89,7 +100,7 @@ sub('bfd.ninja', function()
41 '-e s,@bfd_ufile_ptr@,uint64_t,',
42 }})
43 build('sed', '$outdir/bfd/bfdver.h', '$srcdir/bfd/version.h', {expr={
44- string.format('-e s,@bfd_version@,%d%02d%02d%02d%02d,', version[1], version[2], version[3], version[4], version[5]),
45+ string.format('-e s,@bfd_version@,%d%02d%02d,', version[1], version[2], version[3]),
46 string.format([[-e 's,@bfd_version_string@,"%s",']], table.concat(version, '.')),
47 [[-e 's,@bfd_version_package@,"(GNU Binutils) ",']],
48 [[-e 's,@report_bugs_to@,"<http://www.sourceware.org/bugzilla/>",']],
49@@ -159,15 +170,16 @@ sub('bfd.ninja', function()
50 -- src/bfd/Makefile.am:/^BFD32_LIBS_CFILES
51 -- src/bfd/Makefile.am:/^BFD64_LIBS_CFILES
52 paths[[bfd/(
53- archive.c archures.c.o bfd.c bfdio.c bfdwin.c cache.c coff-bfd.c
54- compress.c corefile.c elf-properties.c format.c hash.c
55- init.c libbfd.c linker.c merge.c opncls.c reloc.c
56+ archive.c archures.c.o bfd.c bfdio.c cache.c
57+ coff-bfd.c compress.c corefile.c format.c
58+ hash.c libbfd.c linker.c merge.c opncls.c reloc.c
59 section.c simple.c stab-syms.c stabs.c syms.c targets.c.o
60 binary.c ihex.c srec.c tekhex.c verilog.c
61
62 archive64.c
63 )]],
64 table.keys(srcs),
65+ 'libsframe.a',
66 'libiberty.a',
67 '$builddir/pkg/zlib/libz.a',
68 }, deps)
69@@ -213,18 +225,18 @@ sub('binutils.ninja', function()
70
71 cc('binutils/objdump.c', nil, {cflags='$cflags -D OBJDUMP_PRIVATE_VECTORS='})
72 exe('bin/size', [[binutils/size.c libcommon.a.d]])
73- exe('bin/objcopy', [[binutils/(objcopy.c not-strip.c) libcommon.a.d]])
74+ exe('bin/objcopy', [[binutils/not-strip.c libcommon.a.d]])
75 exe('bin/strings', [[binutils/strings.c libcommon.a.d]])
76 exe('bin/readelf', [[binutils/(readelf.c unwind-ia64.c) libcommon.a.d]])
77 exe('bin/elfedit', [[binutils/elfedit.c libcommon.a.d]])
78- exe('bin/strip', [[binutils/(objcopy.c.o is-strip.c) libcommon.a.d]])
79+ exe('bin/strip', [[binutils/is-strip.c libcommon.a.d]])
80 exe('bin/nm', [[binutils/nm.c libcommon.a.d]])
81 exe('bin/objdump', [[binutils/(objdump.c.o prdbg.c) libcommon.a.d libopcodes.a]])
82 exe('bin/addr2line', [[binutils/addr2line.c libcommon.a.d]])
83
84 local arobjs = objects[[
85 binutils/(
86- arparse.c arlex.c ar.c arsup.c binemul.c
87+ arparse.c arlex.c arsup.c binemul.c
88 emul_vanilla.c
89 )
90 libcommon.a.d
91@@ -270,6 +282,7 @@ sub('gas.ninja', function()
92 app.c
93 as.c
94 atof-generic.c
95+ codeview.c
96 compress-debug.c
97 cond.c
98 depend.c
99@@ -282,6 +295,8 @@ sub('gas.ninja', function()
100 flonum-konst.c
101 flonum-mult.c
102 frags.c
103+ gen-sframe.c
104+ ginsn.c
105 hash.c
106 input-file.c
107 input-scrub.c
108@@ -293,6 +308,9 @@ sub('gas.ninja', function()
109 read.c
110 remap.c
111 sb.c
112+ scfidw2gen.c
113+ scfi.c
114+ sframe-opt.c
115 stabs.c
116 subsegs.c
117 symbols.c
118@@ -317,6 +335,7 @@ sub('ld.ninja', function()
119 '-D ELF_LIST_OPTIONS=true',
120 '-D ELF_SHLIB_LIST_OPTIONS=true',
121 '-D ELF_PLT_UNWIND_LIST_OPTIONS=true',
122+ '-D ELF_SFRAME_LIST_OPTIONS=true',
123 string.format([[-D 'BINDIR="%s/bin"']], config.prefix),
124 string.format([[-D 'SCRIPTDIR="%s/%s/lib"']], config.prefix, config.target.platform),
125 string.format([[-D 'TOOLBINDIR="%s/%s/bin"']], config.prefix, config.target.platform),
126@@ -332,15 +351,12 @@ sub('ld.ninja', function()
127 rule('ldemul', 'sh $dir/ldemul.sh $emuls >$out')
128 build('ldemul', '$outdir/ld/ldemul-list.h', {'|', '$dir/ldemul.sh'}, {emuls=emuls})
129
130- build('copy', '$outdir/ld/stringify.sed', '$srcdir/ld/emultempl/astring.sed')
131- rule('genscripts', string.format([[cd $outdir/ld && LIB_PATH= sh $$OLDPWD/$srcdir/ld/genscripts.sh $$OLDPWD/$srcdir/ld /lib '' '' %s %s %s '' /lib '%s' /lib no yes $emul %s]], config.target.platform, config.target.platform, config.target.platform, table.concat(emuls, ' '), config.target.platform))
132+ rule('genscripts', string.format([[cd $outdir/ld && mkdir -p ldscripts && LIB_PATH= sh $$OLDPWD/$srcdir/ld/genscripts.sh $$OLDPWD/$srcdir/ld /lib '' '' %s %s %s '' /lib '%s' /lib no yes $emul %s]], config.target.platform, config.target.platform, config.target.platform, table.concat(emuls, ' '), config.target.platform))
133 local srcs = {}
134 for _, emul in ipairs(emuls) do
135 local out = string.format('$outdir/ld/e%s.c', emul)
136 table.insert(srcs, out)
137- build('genscripts', string.format('$outdir/ld/e%s.c', emul), {'|', '$srcdir/ld/genscripts.sh', '$outdir/ld/stringify.sed'}, {
138- emul=emul,
139- })
140+ build('genscripts', string.format('$outdir/ld/e%s.c', emul), {'|', '$srcdir/ld/genscripts.sh'}, {emul=emul})
141 end
142
143 cc('ld/ldmain.c', nil, {cflags={
+23,
-7
1@@ -2,14 +2,22 @@
2 # error config.h must be #included before system headers
3 #endif
4 #define __CONFIG_H__ 1
5+#define DEFAULT_COMPRESSED_DEBUG_ALGORITHM COMPRESS_DEBUG_GABI_ZLIB
6 #define DEFAULT_EMIT_GNU_HASH 1
7 #define DEFAULT_EMIT_SYSV_HASH 0
8 /* #undef DEFAULT_FLAG_COMPRESS_DEBUG */
9+#define DEFAULT_LD_ERROR_EXECSTACK 0
10+#define DEFAULT_LD_ERROR_RWX_SEGMENTS 0
11 #define DEFAULT_LD_EXECSTACK 1
12+#define DEFAULT_LD_GNU2_TLS_TAG 2
13+#define DEFAULT_LD_GNU_TLS_TAG 2
14+#define DEFAULT_LD_ROSEGMENT 0
15 #define DEFAULT_LD_TEXTREL_CHECK textrel_check_warning
16 #define DEFAULT_LD_TEXTREL_CHECK_WARNING 1
17 #define DEFAULT_LD_WARN_EXECSTACK 2
18 #define DEFAULT_LD_WARN_RWX_SEGMENTS 1
19+#define DEFAULT_LD_Z_MARK_PLT 0
20+#define DEFAULT_LD_Z_MEMORY_SEAL 0
21 #define DEFAULT_LD_Z_RELRO 1
22 #define DEFAULT_LD_Z_SEPARATE_CODE 1
23 #define DEFAULT_NEW_DTAGS 1
24@@ -18,28 +26,35 @@
25 /* #undef ENABLE_NLS */
26 /* #undef EXTRA_SHLIB_EXTENSION */
27 #define GOT_HANDLING_DEFAULT GOT_HANDLING_TARGET_DEFAULT
28+/* #undef HAVE_CFLOCALECOPYPREFERREDLANGUAGES */
29+/* #undef HAVE_CFPREFERENCESCOPYAPPVALUE */
30 #define HAVE_CLOSE 1
31-#define HAVE_DECL_ASPRINTF 1
32+/* #undef HAVE_DCGETTEXT */
33 #define HAVE_DECL_ENVIRON 1
34 #define HAVE_DECL_GETOPT 1
35-#define HAVE_DECL_SBRK 1
36+#define HAVE_DECL_STPCPY 1
37+#define HAVE_DECL_STRTOULL 1
38 #define HAVE_DLFCN_H 1
39 /* #undef HAVE_ELF_HINTS_H */
40 #define HAVE_FCNTL_H 1
41 #define HAVE_GETPAGESIZE 1
42+#define HAVE_GETRUSAGE 1
43+/* #undef HAVE_GETTEXT */
44 #define HAVE_GLOB 1
45+/* #undef HAVE_ICONV */
46 #define HAVE_INITFINI_ARRAY 1
47 #define HAVE_INTTYPES_H 1
48 /* #undef HAVE_JANSSON */
49 #define HAVE_LC_MESSAGES 1
50 #define HAVE_LIMITS_H 1
51 #define HAVE_LSEEK 1
52+/* #undef HAVE_MALLINFO */
53+/* #undef HAVE_MALLINFO2 */
54 #define HAVE_MEMORY_H 1
55 #define HAVE_MKSTEMP 1
56 #define HAVE_MMAP 1
57 #define HAVE_OPEN 1
58 #define HAVE_REALPATH 1
59-#define HAVE_SBRK 1
60 #define HAVE_STDINT_H 1
61 #define HAVE_STDLIB_H 1
62 #define HAVE_STRINGS_H 1
63@@ -53,15 +68,15 @@
64 #define HAVE_UNISTD_H 1
65 #define HAVE_WAITPID 1
66 /* #undef HAVE_WINDOWS_H */
67+/* #undef HAVE_ZSTD */
68 #define LT_OBJDIR ".libs/"
69 #define PACKAGE "ld"
70 #define PACKAGE_BUGREPORT ""
71 #define PACKAGE_NAME "ld"
72-#define PACKAGE_STRING "ld 2.39"
73+#define PACKAGE_STRING "ld 2.46.0"
74 #define PACKAGE_TARNAME "ld"
75 #define PACKAGE_URL ""
76-#define PACKAGE_VERSION "2.39"
77-#define SIZEOF_VOID_P 8
78+#define PACKAGE_VERSION "2.46.0"
79 #define STDC_HEADERS 1
80 #define SUPPORT_ERROR_HANDLING_SCRIPT 1
81 /* #undef USE_BINARY_FOPEN */
82@@ -80,7 +95,8 @@
83 #ifndef __EXTENSIONS__
84 # define __EXTENSIONS__ 1
85 #endif
86-#define VERSION "2.39"
87+#define VERSION "2.46.0"
88+/* #undef WITH_XXHASH */
89 /* #undef YYTEXT_POINTER */
90 #ifndef _DARWIN_USE_64_BIT_INODE
91 # define _DARWIN_USE_64_BIT_INODE 1
+4,
-0
1@@ -43,6 +43,7 @@
2 #define HAVE_INSQUE 1
3 #define HAVE_INTPTR_T 1
4 #define HAVE_INTTYPES_H 1
5+#define HAVE_LIBGEN_H 1
6 #define HAVE_LIMITS_H 1
7 #define HAVE_LONG_LONG 1
8 /* #undef HAVE_MACHINE_HAL_SYSINFO_H */
9@@ -53,12 +54,14 @@
10 #define HAVE_MEMMEM 1
11 #define HAVE_MEMMOVE 1
12 #define HAVE_MEMORY_H 1
13+#define HAVE_MEMRCHR 1
14 #define HAVE_MEMSET 1
15 #define HAVE_MKSTEMPS 1
16 #define HAVE_MMAP 1
17 /* #undef HAVE_ON_EXIT */
18 #define HAVE_PIPE2 1
19 #define HAVE_POSIX_SPAWN 1
20+#define HAVE_POSIX_SPAWNP 1
21 /* #undef HAVE_PROCESS_H */
22 #define HAVE_PSIGNAL 1
23 /* #undef HAVE_PSTAT_GETDYNAMIC */
24@@ -138,6 +141,7 @@
25 #define HAVE_WAITPID 1
26 #define HAVE_WORKING_FORK 1
27 #define HAVE_WORKING_VFORK 1
28+/* #undef HAVE_X86_SHA1_HW_SUPPORT */
29 /* #undef HAVE__DOPRNT */
30 /* #undef HAVE__SYSTEM_CONFIGURATION */
31 #define HAVE___FSETLOCKING 1
+51,
-0
1@@ -0,0 +1,51 @@
2+#define HAVE_BYTESWAP_H 1
3+#define HAVE_DECL_BSWAP_16 1
4+#define HAVE_DECL_BSWAP_32 1
5+#define HAVE_DECL_BSWAP_64 1
6+#define HAVE_DLFCN_H 1
7+#define HAVE_ENDIAN_H 1
8+#define HAVE_GETPAGESIZE 1
9+#define HAVE_INTTYPES_H 1
10+#define HAVE_MEMORY_H 1
11+#define HAVE_MMAP 1
12+#define HAVE_STDINT_H 1
13+#define HAVE_STDLIB_H 1
14+#define HAVE_STRINGS_H 1
15+#define HAVE_STRING_H 1
16+#define HAVE_SYS_PARAM_H 1
17+#define HAVE_SYS_STAT_H 1
18+#define HAVE_SYS_TYPES_H 1
19+#define HAVE_UNISTD_H 1
20+#define LT_OBJDIR ".libs/"
21+#define PACKAGE "libsframe"
22+#define PACKAGE_BUGREPORT ""
23+#define PACKAGE_NAME "libsframe"
24+#define PACKAGE_STRING "libsframe 2.46.0"
25+#define PACKAGE_TARNAME "libsframe"
26+#define PACKAGE_URL ""
27+#define PACKAGE_VERSION "2.46.0"
28+#define STDC_HEADERS 1
29+#ifndef _ALL_SOURCE
30+# define _ALL_SOURCE 1
31+#endif
32+#ifndef _GNU_SOURCE
33+# define _GNU_SOURCE 1
34+#endif
35+#ifndef _POSIX_PTHREAD_SEMANTICS
36+# define _POSIX_PTHREAD_SEMANTICS 1
37+#endif
38+#ifndef _TANDEM_SOURCE
39+# define _TANDEM_SOURCE 1
40+#endif
41+#ifndef __EXTENSIONS__
42+# define __EXTENSIONS__ 1
43+#endif
44+#define VERSION "2.46.0"
45+#ifndef _DARWIN_USE_64_BIT_INODE
46+# define _DARWIN_USE_64_BIT_INODE 1
47+#endif
48+/* #undef _FILE_OFFSET_BITS */
49+/* #undef _LARGE_FILES */
50+/* #undef _MINIX */
51+/* #undef _POSIX_1_SOURCE */
52+/* #undef _POSIX_SOURCE */
+9,
-5
1@@ -4,9 +4,14 @@
2 #define __CONFIG_H__ 1
3 /* #undef ENABLE_CHECKING */
4 /* #undef ENABLE_NLS */
5-#define HAVE_DECL_BASENAME 1
6+/* #undef HAVE_CFLOCALECOPYPREFERREDLANGUAGES */
7+/* #undef HAVE_CFPREFERENCESCOPYAPPVALUE */
8+/* #undef HAVE_DCGETTEXT */
9+#define HAVE_DECL_BASENAME 0
10 #define HAVE_DECL_STPCPY 1
11 #define HAVE_DLFCN_H 1
12+/* #undef HAVE_GETTEXT */
13+/* #undef HAVE_ICONV */
14 #define HAVE_INTTYPES_H 1
15 #define HAVE_MEMORY_H 1
16 #define HAVE_SIGSETJMP 1
17@@ -21,11 +26,10 @@
18 #define PACKAGE "opcodes"
19 #define PACKAGE_BUGREPORT ""
20 #define PACKAGE_NAME "opcodes"
21-#define PACKAGE_STRING "opcodes 2.39"
22+#define PACKAGE_STRING "opcodes 2.46.0"
23 #define PACKAGE_TARNAME "opcodes"
24 #define PACKAGE_URL ""
25-#define PACKAGE_VERSION "2.39"
26-#define SIZEOF_VOID_P 8
27+#define PACKAGE_VERSION "2.46.0"
28 #define STDC_HEADERS 1
29 #ifndef _ALL_SOURCE
30 # define _ALL_SOURCE 1
31@@ -42,7 +46,7 @@
32 #ifndef __EXTENSIONS__
33 # define __EXTENSIONS__ 1
34 #endif
35-#define VERSION "2.39"
36+#define VERSION "2.46.0"
37 /* #undef _MINIX */
38 /* #undef _POSIX_1_SOURCE */
39 /* #undef _POSIX_SOURCE */
R pkg/binutils/patch/0003-Remove-support-for-long-double-in-error-formatter.patch =>
pkg/binutils/patch/0001-Remove-support-for-long-double-in-error-formatter.patch
+8,
-8
1@@ -1,4 +1,4 @@
2-From dab3e5da03770ba254c95d0c1d8c9f029dd57257 Mon Sep 17 00:00:00 2001
3+From 93ef028b0be6e8a91f682076be2db58afc5719f3 Mon Sep 17 00:00:00 2001
4 From: Michael Forney <mforney@mforney.org>
5 Date: Mon, 6 Sep 2021 18:51:05 -0700
6 Subject: [PATCH] Remove support for long double in error formatter
7@@ -10,10 +10,10 @@ supporting it in the formatter.
8 1 file changed, 2 insertions(+), 7 deletions(-)
9
10 diff --git a/bfd/bfd.c b/bfd/bfd.c
11-index a2f294da983..3e59057d07a 100644
12+index 35669075da2..033d6ea5c68 100644
13 --- a/bfd/bfd.c
14 +++ b/bfd/bfd.c
15-@@ -871,7 +871,6 @@ union _bfd_doprnt_args
16+@@ -1011,7 +1011,6 @@ union _bfd_doprnt_args
17 long l;
18 long long ll;
19 double d;
20@@ -21,7 +21,7 @@ index a2f294da983..3e59057d07a 100644
21 void *p;
22 enum
23 {
24-@@ -880,7 +879,6 @@ union _bfd_doprnt_args
25+@@ -1020,7 +1019,6 @@ union _bfd_doprnt_args
26 Long,
27 LongLong,
28 Double,
29@@ -29,7 +29,7 @@ index a2f294da983..3e59057d07a 100644
30 Ptr
31 } type;
32 };
33-@@ -1066,7 +1064,7 @@ _bfd_doprnt (FILE *stream, const char *format, union _bfd_doprnt_args *args)
34+@@ -1241,7 +1239,7 @@ _bfd_doprnt (bfd_print_callback print, void *stream, const char *format,
35 if (wide_width == 0)
36 PRINT_TYPE (double, d);
37 else
38@@ -38,7 +38,7 @@ index a2f294da983..3e59057d07a 100644
39 }
40 break;
41 case 's':
42-@@ -1283,7 +1281,7 @@ _bfd_doprnt_scan (const char *format, union _bfd_doprnt_args *args)
43+@@ -1478,7 +1476,7 @@ _bfd_doprnt_scan (const char *format, va_list ap, union _bfd_doprnt_args *args)
44 if (wide_width == 0)
45 arg_type = Double;
46 else
47@@ -47,7 +47,7 @@ index a2f294da983..3e59057d07a 100644
48 }
49 break;
50 case 's':
51-@@ -1334,9 +1332,6 @@ error_handler_internal (const char *fmt, va_list ap)
52+@@ -1516,9 +1514,6 @@ _bfd_doprnt_scan (const char *format, va_list ap, union _bfd_doprnt_args *args)
53 case Double:
54 args[i].d = va_arg (ap, double);
55 break;
56@@ -58,5 +58,5 @@ index a2f294da983..3e59057d07a 100644
57 args[i].p = va_arg (ap, void *);
58 break;
59 --
60-2.34.1
61+2.49.0
62
1@@ -1,222 +0,0 @@
2-From 8e578ea68fa570aa46f04d4cf1c593ac11732bdf Mon Sep 17 00:00:00 2001
3-From: Michael Forney <mforney@mforney.org>
4-Date: Wed, 17 Apr 2019 16:44:05 -0700
5-Subject: [PATCH] libiberty: Implement pex_unix_exec_child using posix_spawn
6-
7----
8- libiberty/config.in | 6 +++
9- libiberty/configure | 10 ++---
10- libiberty/configure.ac | 10 ++---
11- libiberty/pex-unix.c | 95 +++++++++++++++++++++++++++++++++++++++++-
12- 4 files changed, 110 insertions(+), 11 deletions(-)
13-
14-diff --git a/libiberty/config.in b/libiberty/config.in
15-index f7052b5d958..ce79a9e77f2 100644
16---- a/libiberty/config.in
17-+++ b/libiberty/config.in
18-@@ -198,6 +198,9 @@
19- /* Define to 1 if you have the `pipe2' function. */
20- #undef HAVE_PIPE2
21-
22-+/* Define to 1 if you have the `posix_spawn' function. */
23-+#undef HAVE_POSIX_SPAWN
24-+
25- /* Define to 1 if you have the <process.h> header file. */
26- #undef HAVE_PROCESS_H
27-
28-@@ -249,6 +252,9 @@
29- /* Define to 1 if you have the `spawnvpe' function. */
30- #undef HAVE_SPAWNVPE
31-
32-+/* Define to 1 if you have the <spawn.h> header file. */
33-+#undef HAVE_SPAWN_H
34-+
35- /* Define to 1 if you have the <stdint.h> header file. */
36- #undef HAVE_STDINT_H
37-
38-diff --git a/libiberty/configure b/libiberty/configure
39-index 306c07bd37e..6f85b1fd529 100755
40---- a/libiberty/configure
41-+++ b/libiberty/configure
42-@@ -5652,7 +5652,7 @@ host_makefile_frag=${frag}
43- # It's OK to check for header files. Although the compiler may not be
44- # able to link anything, it had better be able to at least compile
45- # something.
46--for ac_header in sys/file.h sys/param.h limits.h stdlib.h malloc.h string.h unistd.h strings.h sys/time.h time.h sys/resource.h sys/stat.h sys/mman.h fcntl.h alloca.h sys/pstat.h sys/sysmp.h sys/sysinfo.h machine/hal_sysinfo.h sys/table.h sys/sysctl.h sys/systemcfg.h stdint.h stdio_ext.h process.h sys/prctl.h
47-+for ac_header in sys/file.h sys/param.h limits.h stdlib.h malloc.h string.h unistd.h strings.h sys/time.h time.h sys/resource.h sys/stat.h sys/mman.h fcntl.h alloca.h sys/pstat.h sys/sysmp.h sys/sysinfo.h machine/hal_sysinfo.h sys/table.h sys/sysctl.h sys/systemcfg.h stdint.h stdio_ext.h process.h sys/prctl.h spawn.h
48- do :
49- as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
50- ac_fn_c_check_header_preproc "$LINENO" "$ac_header" "$as_ac_Header"
51-@@ -6161,9 +6161,9 @@ funcs="$funcs setproctitle"
52- vars="sys_errlist sys_nerr sys_siglist"
53-
54- checkfuncs="__fsetlocking canonicalize_file_name dup3 getrlimit getrusage \
55-- getsysinfo gettimeofday on_exit pipe2 psignal pstat_getdynamic pstat_getstatic \
56-- realpath setrlimit spawnve spawnvpe strerror strsignal sysconf sysctl \
57-- sysmp table times wait3 wait4"
58-+ getsysinfo gettimeofday on_exit pipe2 posix_spawn psignal pstat_getdynamic \
59-+ pstat_getstatic realpath setrlimit spawnve spawnvpe strerror strsignal \
60-+ sysconf sysctl sysmp table times wait3 wait4"
61-
62- #Â Darwin has sbrk, but it is deprecated and that produces build-time warnings
63- #Â so do not check for it.
64-@@ -6184,7 +6184,7 @@ if test "x" = "y"; then
65- index insque \
66- memchr memcmp memcpy memmem memmove memset mkstemps \
67- on_exit \
68-- pipe2 psignal pstat_getdynamic pstat_getstatic putenv \
69-+ pipe2 posix_spawn psignal pstat_getdynamic pstat_getstatic putenv \
70- random realpath rename rindex \
71- sbrk setenv setproctitle setrlimit sigsetmask snprintf spawnve spawnvpe \
72- stpcpy stpncpy strcasecmp strchr strdup \
73-diff --git a/libiberty/configure.ac b/libiberty/configure.ac
74-index 6c1ff9c6093..5d21f383e7d 100644
75---- a/libiberty/configure.ac
76-+++ b/libiberty/configure.ac
77-@@ -289,7 +289,7 @@ AC_SUBST_FILE(host_makefile_frag)
78- # It's OK to check for header files. Although the compiler may not be
79- # able to link anything, it had better be able to at least compile
80- # something.
81--AC_CHECK_HEADERS(sys/file.h sys/param.h limits.h stdlib.h malloc.h string.h unistd.h strings.h sys/time.h time.h sys/resource.h sys/stat.h sys/mman.h fcntl.h alloca.h sys/pstat.h sys/sysmp.h sys/sysinfo.h machine/hal_sysinfo.h sys/table.h sys/sysctl.h sys/systemcfg.h stdint.h stdio_ext.h process.h sys/prctl.h)
82-+AC_CHECK_HEADERS(sys/file.h sys/param.h limits.h stdlib.h malloc.h string.h unistd.h strings.h sys/time.h time.h sys/resource.h sys/stat.h sys/mman.h fcntl.h alloca.h sys/pstat.h sys/sysmp.h sys/sysinfo.h machine/hal_sysinfo.h sys/table.h sys/sysctl.h sys/systemcfg.h stdint.h stdio_ext.h process.h sys/prctl.h spawn.h)
83- AC_HEADER_SYS_WAIT
84- AC_HEADER_TIME
85-
86-@@ -412,9 +412,9 @@ funcs="$funcs setproctitle"
87- vars="sys_errlist sys_nerr sys_siglist"
88-
89- checkfuncs="__fsetlocking canonicalize_file_name dup3 getrlimit getrusage \
90-- getsysinfo gettimeofday on_exit pipe2 psignal pstat_getdynamic pstat_getstatic \
91-- realpath setrlimit spawnve spawnvpe strerror strsignal sysconf sysctl \
92-- sysmp table times wait3 wait4"
93-+ getsysinfo gettimeofday on_exit pipe2 posix_spawn psignal pstat_getdynamic \
94-+ pstat_getstatic realpath setrlimit spawnve spawnvpe strerror strsignal \
95-+ sysconf sysctl sysmp table times wait3 wait4"
96-
97- #Â Darwin has sbrk, but it is deprecated and that produces build-time warnings
98- #Â so do not check for it.
99-@@ -435,7 +435,7 @@ if test "x" = "y"; then
100- index insque \
101- memchr memcmp memcpy memmem memmove memset mkstemps \
102- on_exit \
103-- pipe2 psignal pstat_getdynamic pstat_getstatic putenv \
104-+ pipe2 posix_spawn psignal pstat_getdynamic pstat_getstatic putenv \
105- random realpath rename rindex \
106- sbrk setenv setproctitle setrlimit sigsetmask snprintf spawnve spawnvpe \
107- stpcpy stpncpy strcasecmp strchr strdup \
108-diff --git a/libiberty/pex-unix.c b/libiberty/pex-unix.c
109-index 850d344ba58..ba3a6d5d38f 100644
110---- a/libiberty/pex-unix.c
111-+++ b/libiberty/pex-unix.c
112-@@ -58,6 +58,9 @@ extern int errno;
113- #ifdef HAVE_PROCESS_H
114- #include <process.h>
115- #endif
116-+#ifdef HAVE_SPAWN_H
117-+#include <spawn.h>
118-+#endif
119-
120- #ifdef vfork /* Autoconf may define this to fork for us. */
121- # define VFORK_STRING "fork"
122-@@ -366,7 +369,97 @@ pex_unix_close (struct pex_obj *obj ATTRIBUTE_UNUSED, int fd)
123-
124- /* Execute a child. */
125-
126--#if defined(HAVE_SPAWNVE) && defined(HAVE_SPAWNVPE)
127-+#if defined(HAVE_POSIX_SPAWN)
128-+/* Implementation of pex->exec_child using the posix_spawn operation. */
129-+
130-+static pid_t
131-+pex_unix_exec_child (struct pex_obj *obj, int flags, const char *executable,
132-+ char * const * argv, char * const * env,
133-+ int in, int out, int errdes,
134-+ int toclose, const char **errmsg, int *err)
135-+{
136-+ posix_spawn_file_actions_t file_actions;
137-+ pid_t pid;
138-+ int ret;
139-+
140-+ *errmsg = "posix_spawn";
141-+ ret = posix_spawn_file_actions_init (&file_actions);
142-+ if (ret != 0)
143-+ goto error;
144-+ if (in != STDIN_FILE_NO)
145-+ {
146-+ ret = posix_spawn_file_actions_adddup2 (&file_actions, in, STDIN_FILE_NO);
147-+ if (ret != 0)
148-+ goto error;
149-+ ret = posix_spawn_file_actions_addclose (&file_actions, in);
150-+ if (ret != 0)
151-+ goto error;
152-+ }
153-+ if (out != STDOUT_FILE_NO)
154-+ {
155-+ ret = posix_spawn_file_actions_adddup2 (&file_actions, out, STDOUT_FILE_NO);
156-+ if (ret != 0)
157-+ goto error;
158-+ ret = posix_spawn_file_actions_addclose (&file_actions, out);
159-+ if (ret != 0)
160-+ goto error;
161-+ }
162-+ if ((flags & PEX_STDERR_TO_STDOUT) != 0)
163-+ {
164-+ ret = posix_spawn_file_actions_adddup2 (&file_actions, STDOUT_FILE_NO, STDERR_FILE_NO);
165-+ if (ret != 0)
166-+ goto error;
167-+ }
168-+ else if (errdes != STDERR_FILE_NO)
169-+ {
170-+ ret = posix_spawn_file_actions_adddup2 (&file_actions, errdes, STDERR_FILE_NO);
171-+ if (ret != 0)
172-+ goto error;
173-+ ret = posix_spawn_file_actions_addclose (&file_actions, errdes);
174-+ if (ret != 0)
175-+ goto error;
176-+ }
177-+ if (toclose >= 0)
178-+ {
179-+ ret = posix_spawn_file_actions_addclose (&file_actions, toclose);
180-+ if (ret != 0)
181-+ goto error;
182-+ }
183-+ if (env == NULL)
184-+ env = environ;
185-+ if ((flags & PEX_SEARCH) != 0)
186-+ ret = posix_spawnp (&pid, executable, &file_actions, NULL, argv, env);
187-+ else
188-+ ret = posix_spawn (&pid, executable, &file_actions, NULL, argv, env);
189-+ if (ret != 0)
190-+ goto error;
191-+ posix_spawn_file_actions_destroy(&file_actions);
192-+
193-+ *errmsg = "close";
194-+ if (in != STDIN_FILE_NO && close (in) < 0)
195-+ {
196-+ ret = errno;
197-+ goto error;
198-+ }
199-+ if (out != STDOUT_FILE_NO && close (out) < 0)
200-+ {
201-+ ret = errno;
202-+ goto error;
203-+ }
204-+ if (errdes != STDERR_FILE_NO && close (errdes) < 0)
205-+ {
206-+ ret = errno;
207-+ goto error;
208-+ }
209-+
210-+ return pid;
211-+
212-+ error:
213-+ *err = ret;
214-+ return (pid_t) -1;
215-+}
216-+
217-+#elif defined(HAVE_SPAWNVE) && defined(HAVE_SPAWNVPE)
218- /* Implementation of pex->exec_child using the Cygwin spawn operation. */
219-
220- /* Subroutine of pex_unix_exec_child. Move OLD_FD to a new file descriptor
221---
222-2.35.1
223-
1@@ -1,29 +0,0 @@
2-From 7e7d7da3e8d453d1125488cc5cd7c42293b62934 Mon Sep 17 00:00:00 2001
3-From: Michael Forney <mforney@mforney.org>
4-Date: Fri, 5 Jun 2020 01:17:51 -0700
5-Subject: [PATCH] Adjust style to prevent gcc warning
6-
7-This is still implementation-defined, but matches the style used
8-elsewhere in this file and prevents a conversion overflow warning.
9----
10- bfd/elf.c | 3 ++-
11- 1 file changed, 2 insertions(+), 1 deletion(-)
12-
13-diff --git a/bfd/elf.c b/bfd/elf.c
14-index 84a5d94281..5631993d15 100644
15---- a/bfd/elf.c
16-+++ b/bfd/elf.c
17-@@ -734,8 +734,9 @@ setup_group (bfd *abfd, Elf_Internal_Shdr *hdr, asection *newsect)
18- /* If all groups are invalid then fail. */
19- if (num_group == 0)
20- {
21-+ num_group = (unsigned) -1;
22- elf_tdata (abfd)->group_sect_ptr = NULL;
23-- elf_tdata (abfd)->num_group = num_group = -1;
24-+ elf_tdata (abfd)->num_group = num_group;
25- _bfd_error_handler
26- (_("%pB: no valid group sections found"), abfd);
27- bfd_set_error (bfd_error_bad_value);
28---
29-2.30.0
30-
R pkg/binutils/patch/0004-x86-avoid-non-standard-a.b-designator.patch =>
pkg/binutils/patch/0002-x86-avoid-non-standard-a.b-designator.patch
+6,
-6
1@@ -1,4 +1,4 @@
2-From 833b13a4aacbc5fb66dd13f1d6e6d09d152ac623 Mon Sep 17 00:00:00 2001
3+From a6a8a45abeea98fc479321f12feb30c9caeb69d6 Mon Sep 17 00:00:00 2001
4 From: Michael Forney <mforney@mforney.org>
5 Date: Thu, 8 Feb 2024 01:16:45 -0800
6 Subject: [PATCH] x86: avoid non-standard [a...b] designator
7@@ -8,10 +8,10 @@ Subject: [PATCH] x86: avoid non-standard [a...b] designator
8 1 file changed, 1 insertion(+), 1 deletion(-)
9
10 diff --git a/opcodes/i386-dis.c b/opcodes/i386-dis.c
11-index de9793690a5..fccdaa4f1e4 100644
12+index 21f37bc7509..edfc2b0f45e 100644
13 --- a/opcodes/i386-dis.c
14 +++ b/opcodes/i386-dis.c
15-@@ -9363,7 +9363,6 @@ print_insn (bfd_vma pc, disassemble_info *info, int intel_syntax)
16+@@ -9736,7 +9736,6 @@ print_insn (bfd_vma pc, disassemble_info *info, int intel_syntax)
17 ? intel_syntax
18 : (info->mach & bfd_mach_i386_intel_syntax) != 0,
19 .intel_mnemonic = !SYSV386_COMPAT,
20@@ -19,14 +19,14 @@ index de9793690a5..fccdaa4f1e4 100644
21 .start_pc = pc,
22 .start_codep = priv.the_buffer,
23 .codep = priv.the_buffer,
24-@@ -9488,6 +9487,7 @@ print_insn (bfd_vma pc, disassemble_info *info, int intel_syntax)
25+@@ -9863,6 +9862,7 @@ print_insn (bfd_vma pc, disassemble_info *info, int intel_syntax)
26 {
27 op_out[i][0] = 0;
28 ins.op_out[i] = op_out[i];
29 + ins.op_index[i] = -1;
30 }
31
32- if (OPCODES_SIGSETJMP (priv.bailout) != 0)
33+ sizeflag = priv.orig_sizeflag;
34 --
35-2.42.0
36+2.49.0
37
+1,
-1
1@@ -1 +1 @@
2-645c25f563b8adc0a81dbd6a41cffbf4d37083a382e02d5d3df4f65c09516d00 binutils-2.39.tar.xz
3+d75a94f4d73e7a4086f7513e67e439e8fcdcbb726ffe63f4661744e6256b2cf2 binutils-2.46.0.tar.xz
+1,
-1
1@@ -1 +1 @@
2-url = "https://ftp.gnu.org/gnu/binutils/binutils-2.39.tar.xz"
3+url = "https://ftp.gnu.org/gnu/binutils/binutils-2.46.0.tar.xz"
+19,
-18
1@@ -1,23 +1,23 @@
2 local elf = {
3 'elf.c', 'elflink.c', 'elf-attrs.c', 'elf-strtab.c', 'elf-eh-frame.c',
4- 'dwarf1.c', 'dwarf2.c'
5+ 'elf-properties.c', 'elf-sframe.c', 'dwarf1.c', 'dwarf2.c'
6 }
7 local coffgen = {'coffgen.c', 'dwarf2.c'}
8 local coff = {'cofflink.c', coffgen}
9 local ecoff = {'ecofflink.c', coffgen}
10 local xcoff = {'xcofflink.c', coffgen}
11-local elfxx_x86 = {'elfxx-x86.c', 'elf-ifunc.c', 'elf-nacl.c', 'elf-vxworks.c'}
12+local elfxx_x86 = {'elfxx-x86.c', 'elf-ifunc.c', 'elf-vxworks.c'}
13
14 -- src/bfd/configure.ac:/for vec in/
15 return {
16 aarch64_elf32_be_vec={'elf32-aarch64.c', 'elfxx-aarch64.c', 'elf-ifunc.c', 'elf32.c', elf},
17 aarch64_elf32_le_vec={'elf32-aarch64.c', 'elfxx-aarch64.c', 'elf-ifunc.c', 'elf32.c', elf},
18 aarch64_elf64_be_vec={'elf64-aarch64.c', 'elfxx-aarch64.c', 'elf-ifunc.c', 'elf64.c', elf},
19- aarch64_elf64_be_cloudabi_vec={'elf64-aarch64.c', 'elfxx-aarch64.c', 'elf-ifunc.c', 'elf64.c', elf},
20 aarch64_elf64_le_vec={'elf64-aarch64.c', 'elfxx-aarch64.c', 'elf-ifunc.c', 'elf64.c', elf},
21- aarch64_elf64_le_cloudabi_vec={'elf64-aarch64.c', 'elfxx-aarch64.c', 'elf-ifunc.c', 'elf64.c', elf},
22 aarch64_mach_o_vec={'mach-o-aarch64.c'},
23- aarch64_pei_vec={'pei-aarch64.c', 'pe-aarch64igen.c', coff},
24+ aarch64_pei_le_vec={'pei-aarch64.c', 'pe-aarch64igen.c', coff},
25+ aarch64_pe_le_vec={'pe-aarch64.c', 'pe-aarch64igen.c', coff},
26+ aarch64_pe_bigobj_le_vec={'pe-aarch64.c', 'pe-aarch64igen.c', coff},
27 alpha_ecoff_le_vec={'coff-alpha.c', 'ecoff.c', ecoff},
28 alpha_elf64_vec={'elf64-alpha.c', 'elf64.c', elf},
29 alpha_elf64_fbsd_vec={'elf64-alpha.c', 'elf64.c', elf},
30@@ -30,14 +30,12 @@ return {
31 aout_vec={'host-aout.c', 'aout32.c'},
32 arc_elf32_be_vec={'elf32-arc.c', 'elf32.c', elf},
33 arc_elf32_le_vec={'elf32-arc.c', 'elf32.c', elf},
34- arm_elf32_be_vec={'elf32-arm.c', 'elf32.c', 'elf-nacl.c', 'elf-vxworks.c', elf},
35- arm_elf32_le_vec={'elf32-arm.c', 'elf32.c', 'elf-nacl.c', 'elf-vxworks.c', elf},
36- arm_elf32_fdpic_be_vec={'elf32-arm.c', 'elf32.c', 'elf-nacl.c', 'elf-vxworks.c', elf},
37- arm_elf32_fdpic_le_vec={'elf32-arm.c', 'elf32.c', 'elf-nacl.c', 'elf-vxworks.c', elf},
38- arm_elf32_nacl_be_vec={'elf32-arm.c', 'elf32.c', 'elf-nacl.c', 'elf-vxworks.c', elf},
39- arm_elf32_nacl_le_vec={'elf32-arm.c', 'elf32.c', 'elf-nacl.c', 'elf-vxworks.c', elf},
40- arm_elf32_vxworks_be_vec={'elf32-arm.c', 'elf32.c', 'elf-nacl.c', 'elf-vxworks.c', elf},
41- arm_elf32_vxworks_le_vec={'elf32-arm.c', 'elf32.c', 'elf-nacl.c', 'elf-vxworks.c', elf},
42+ arm_elf32_be_vec={'elf32-arm.c', 'elf32.c', 'elf-vxworks.c', elf},
43+ arm_elf32_le_vec={'elf32-arm.c', 'elf32.c', 'elf-vxworks.c', elf},
44+ arm_elf32_fdpic_be_vec={'elf32-arm.c', 'elf32.c', 'elf-vxworks.c', elf},
45+ arm_elf32_fdpic_le_vec={'elf32-arm.c', 'elf32.c', 'elf-vxworks.c', elf},
46+ arm_elf32_vxworks_be_vec={'elf32-arm.c', 'elf32.c', 'elf-vxworks.c', elf},
47+ arm_elf32_vxworks_le_vec={'elf32-arm.c', 'elf32.c', 'elf-vxworks.c', elf},
48 arm_pe_be_vec={'pe-arm.c', 'peigen.c', coff},
49 arm_pe_le_vec={'pe-arm.c', 'peigen.c', coff},
50 arm_pe_wince_be_vec={'pe-arm-wince.c', 'pe-arm.c', 'peigen.c', coff},
51@@ -104,10 +102,14 @@ return {
52 ia64_pei_vec={'pei-ia64.c', 'pepigen.c', coff},
53 ip2k_elf32_vec={'elf32-ip2k.c', 'elf32.c', elf},
54 iq2000_elf32_vec={'elf32-iq2000.c', 'elf32.c', elf},
55+ -- TODO: possible binutils bug. where is ipa defined?
56+ --kvx_elf32_vec={'elf32-kvx.c', 'elfxx-kvx.c', 'elf32.c', elf, ipa},
57+ --kvx_elf64_vec={'elf64-kvx.c', 'elfxx-kvx.c', 'elf64.c', elf, ipa},
58 lm32_elf32_vec={'elf32-lm32.c', 'elf32.c', elf},
59 lm32_elf32_fdpic_vec={'elf32-lm32.c', 'elf32.c', elf},
60 loongarch_elf32_vec={'elf32-loongarch.c', 'elfxx-loongarch.c', 'elf32.c', 'elf-ifunc.c', elf},
61 loongarch_elf64_vec={'elf64-loongarch.c', 'elf64.c', 'elfxx-loongarch.c', 'elf32.c', 'elf-ifunc.c', elf},
62+ loongarch64_pei_vec={'pei-loongarch64.c', 'pe-loongarch64igen.c', coff},
63 m32c_elf32_vec={'elf32-m32c.c', 'elf32.c', elf},
64 m32r_elf32_vec={'elf32-m32r.c', 'elf32.c', elf},
65 m32r_elf32_le_vec={'elf32-m32r.c', 'elf32.c', elf},
66@@ -168,11 +170,10 @@ return {
67 nds32_elf32_linux_be_vec={'elf32-nds32.c', 'elf32.c', elf},
68 nds32_elf32_linux_le_vec={'elf32-nds32.c', 'elf32.c', elf},
69 nfp_elf64_vec={'elf64-nfp.c', 'elf64.c', elf},
70- nios2_elf32_be_vec={'elf32-nios2.c', 'elf32.c', elf},
71- nios2_elf32_le_vec={'elf32-nios2.c', 'elf32.c', elf},
72 ns32k_aout_pc532mach_vec={'pc532-mach.c', 'aout-ns32k.c'},
73 ns32k_aout_pc532nbsd_vec={'ns32knetbsd.c', 'aout-ns32k.c'},
74 or1k_elf32_vec={'elf32-or1k.c', 'elf32.c', elf},
75+ pdb_vec={'pdb.c'},
76 pdp11_aout_vec={'pdp11.c'},
77 pef_vec={'pef.c'},
78 pef_xlib_vec={'pef.c'},
79@@ -193,6 +194,7 @@ return {
80 riscv_elf64_vec={'elf64-riscv.c', 'elf64.c', 'elfxx-riscv.c', 'elf-ifunc.c', 'elf32.c', elf},
81 riscv_elf32_be_vec={'elf32-riscv.c', 'elfxx-riscv.c', 'elf-ifunc.c', 'elf32.c', elf},
82 riscv_elf64_be_vec={'elf64-riscv.c', 'elf64.c', 'elfxx-riscv.c', 'elf-ifunc.c', 'elf32.c', elf},
83+ riscv64_pei_vec={'pei-riscv64.c', 'pe-riscv64igen.c', coff},
84 rl78_elf32_vec={'elf32-rl78.c', 'elf32.c', elf},
85 rs6000_xcoff64_vec={'coff64-rs6000.c', 'aix5ppc-core.c', xcoff},
86 rs6000_xcoff64_aix_vec={'coff64-rs6000.c', 'aix5ppc-core.c', xcoff},
87@@ -265,7 +267,6 @@ return {
88 x86_64_coff_vec={'coff-x86_64.c', coff},
89 x86_64_elf32_vec={'elf64-x86-64.c', elfxx_x86, 'elf64.c', 'elf32.c', elf},
90 x86_64_elf64_vec={'elf64-x86-64.c', elfxx_x86, 'elf64.c', elf},
91- x86_64_elf64_cloudabi_vec={'elf64-x86-64.c', elfxx_x86, 'elf64.c', elf},
92 x86_64_elf64_fbsd_vec={'elf64-x86-64.c', elfxx_x86, 'elf64.c', elf},
93 x86_64_elf64_sol2_vec={'elf64-x86-64.c', elfxx_x86, 'elf64.c', elf},
94 x86_64_mach_o_vec={'mach-o-x86-64.c'},
95@@ -274,8 +275,8 @@ return {
96 x86_64_pei_vec={'pei-x86_64.c', 'pex64igen.c', coff},
97 xgate_elf32_vec={'elf32-xgate.c', 'elf32.c', elf},
98 xstormy16_elf32_vec={'elf32-xstormy16.c', 'elf32.c', elf},
99- xtensa_elf32_be_vec={'xtensa-isa.c', 'xtensa-modules.c', 'elf32-xtensa.c', 'elf32.c', elf},
100- xtensa_elf32_le_vec={'xtensa-isa.c', 'xtensa-modules.c', 'elf32-xtensa.c', 'elf32.c', elf},
101+ xtensa_elf32_be_vec={'xtensa-dynconfig.c', 'xtensa-isa.c', 'xtensa-modules.c', 'elf32-xtensa.c', 'elf32.c', elf},
102+ xtensa_elf32_le_vec={'xtensa-dynconfig.c', 'xtensa-isa.c', 'xtensa-modules.c', 'elf32-xtensa.c', 'elf32.c', elf},
103 z80_coff_vec={'coff-z80.c', 'reloc16.c', coffgen},
104 z80_elf32_vec={'elf32-z80.c', 'elf32.c', elf},
105 z8k_coff_vec={'coff-z8k.c', 'reloc16.c', coff},
+1,
-1
1@@ -1 +1 @@
2-2.39 r1
3+2.46.0