commit: 4fad1531cbc506408855d2027a60cdbeaf66eea3
parent 4cfca674c2993541cded2bb3b73a55cd58f7533c
Author: Michael Forney <mforney@mforney.org>
Date: Tue, 6 Sep 2022 11:09:24 -0700
binutils: Update to 2.39
Diffstat:
15 files changed, 42 insertions(+), 86 deletions(-)
diff --git a/pkg/binutils/.gitignore b/pkg/binutils/.gitignore
@@ -1,5 +1,5 @@
/bfd.ninja
-/binutils-2.38.tar.xz
+/binutils-2.39.tar.xz
/binutils.ninja
/gas.ninja
/ld.ninja
diff --git a/pkg/binutils/README.md b/pkg/binutils/README.md
@@ -11,5 +11,6 @@ Generated with
--disable-plugins \
--enable-default-hash-style=gnu \
--enable-deterministic-archives \
- --enable-new-dtags
+ --enable-new-dtags \
+ --without-msgpack
make configure-host
diff --git a/pkg/binutils/arch.lua b/pkg/binutils/arch.lua
@@ -2,6 +2,7 @@
return {
aarch64={'aarch64-asm.c', 'aarch64-dis.c', 'aarch64-opc.c', 'aarch64-asm-2.c', 'aarch64-dis-2.c', 'aarch64-opc-2.c'},
alpha={'alpha-dis.c', 'alpha-opc.c'},
+ amdgcn={},
arc={'arc-dis.c', 'arc-opc.c', 'arc-ext.c'},
arm={'arm-dis.c'},
avr={'avr-dis.c'},
@@ -21,8 +22,6 @@ return {
hppa={'hppa-dis.c'},
i386={'i386-dis.c', 'i386-opc.c'},
iamcu={'i386-dis.c', 'i386-opc.c'},
- l1om={'i386-dis.c', 'i386-opc.c'},
- k1om={'i386-dis.c', 'i386-opc.c'},
ia64={'ia64-dis.c', 'ia64-opc.c'},
ip2k={'ip2k-asm.c', 'ip2k-desc.c', 'ip2k-dis.c', 'ip2k-ibld.c', 'ip2k-opc.c'},
epiphany={'epiphany-asm.c', 'epiphany-desc.c', 'epiphany-dis.c', 'epiphany-ibld.c', 'epiphany-opc.c'},
@@ -80,7 +79,6 @@ return {
vax={'vax-dis.c'},
visium={'visium-dis.c', 'visium-opc.c'},
wasm32={'wasm32-dis.c'},
- xc16x={'xc16x-asm.c', 'xc16x-desc.c', 'xc16x-dis.c', 'xc16x-ibld.c', 'xc16x-opc.c'},
xgate={'xgate-dis.c', 'xgate-opc.c'},
xstormy16={'xstormy16-asm.c', 'xstormy16-desc.c', 'xstormy16-dis.c', 'xstormy16-ibld.c', 'xstormy16-opc.c'},
xtensa={'xtensa-dis.c'},
diff --git a/pkg/binutils/bfd/config.h b/pkg/binutils/bfd/config.h
@@ -77,10 +77,10 @@
#define PACKAGE "bfd"
#define PACKAGE_BUGREPORT ""
#define PACKAGE_NAME "bfd"
-#define PACKAGE_STRING "bfd 2.38"
+#define PACKAGE_STRING "bfd 2.39"
#define PACKAGE_TARNAME "bfd"
#define PACKAGE_URL ""
-#define PACKAGE_VERSION "2.38"
+#define PACKAGE_VERSION "2.39"
#define SIZEOF_INT 4
#define SIZEOF_LONG 8
#define SIZEOF_LONG_LONG 8
@@ -108,7 +108,7 @@
#ifndef __EXTENSIONS__
# define __EXTENSIONS__ 1
#endif
-#define VERSION "2.38"
+#define VERSION "2.39"
#ifndef _DARWIN_USE_64_BIT_INODE
# define _DARWIN_USE_64_BIT_INODE 1
#endif
diff --git a/pkg/binutils/binutils/config.h b/pkg/binutils/binutils/config.h
@@ -32,6 +32,7 @@
#define HAVE_MKDTEMP 1
#define HAVE_MKSTEMP 1
#define HAVE_MMAP 1
+/* #undef HAVE_MSGPACK */
#define HAVE_SBRK 1
#define HAVE_STDINT_H 1
#define HAVE_STDLIB_H 1
@@ -56,10 +57,10 @@
#define PACKAGE "binutils"
#define PACKAGE_BUGREPORT ""
#define PACKAGE_NAME "binutils"
-#define PACKAGE_STRING "binutils 2.38"
+#define PACKAGE_STRING "binutils 2.39"
#define PACKAGE_TARNAME "binutils"
#define PACKAGE_URL ""
-#define PACKAGE_VERSION "2.38"
+#define PACKAGE_VERSION "2.39"
#define SIZEOF_LONG 8
#define SIZEOF_LONG_LONG 8
#define STDC_HEADERS 1
@@ -82,7 +83,7 @@
#ifndef __EXTENSIONS__
# define __EXTENSIONS__ 1
#endif
-#define VERSION "2.38"
+#define VERSION "2.39"
/* #undef YYTEXT_POINTER */
#ifndef _DARWIN_USE_64_BIT_INODE
# define _DARWIN_USE_64_BIT_INODE 1
diff --git a/pkg/binutils/gas/config.h b/pkg/binutils/gas/config.h
@@ -67,10 +67,10 @@
#define PACKAGE "gas"
#define PACKAGE_BUGREPORT ""
#define PACKAGE_NAME "gas"
-#define PACKAGE_STRING "gas 2.38"
+#define PACKAGE_STRING "gas 2.39"
#define PACKAGE_TARNAME "gas"
#define PACKAGE_URL ""
-#define PACKAGE_VERSION "2.38"
+#define PACKAGE_VERSION "2.39"
#define STDC_HEADERS 1
/* #undef STRICTCOFF */
#define TARGET_ALIAS "x86_64-linux-musl"
@@ -100,7 +100,7 @@
# define __EXTENSIONS__ 1
#endif
/* #undef USING_CGEN */
-#define VERSION "2.38"
+#define VERSION "2.39"
#if defined AC_APPLE_UNIVERSAL_BUILD
# if defined __BIG_ENDIAN__
# define WORDS_BIGENDIAN 1
diff --git a/pkg/binutils/gen.lua b/pkg/binutils/gen.lua
@@ -1,4 +1,4 @@
-local version = setmetatable({2, 38}, {__index=function() return 0 end})
+local version = setmetatable({2, 39}, {__index=function() return 0 end})
local defvec = 'x86_64_elf64_vec'
local selvecs = {[defvec]=true, i386_elf32_vec=true}
local selarchs = {i386=true}
@@ -69,13 +69,9 @@ sub('bfd.ninja', function()
'-e s,@supports_plugins@,0,',
'-e s,@wordsize@,64,',
'-e s,@bfd_default_target_size@,64,',
- '-e s,@BFD_HOST_64BIT_LONG@,1,',
- '-e s,@BFD_HOST_64BIT_LONG_LONG@,1,',
- '-e s,@BFD_HOST_64_BIT_DEFINED@,1,',
- '-e s,@BFD_HOST_64_BIT@,long,',
- [[-e 's,@BFD_HOST_U_64_BIT@,unsigned long,']],
- [[-e 's,@BFD_HOSTPTR_T@,unsigned long,']],
- '-e s,@bfd_file_ptr@,BFD_HOST_64_BIT,',
+ [[-e 's,@BFD_INT64_FMT@,__PRI64,']],
+ '-e s,@bfd_file_ptr@,int64_t,',
+ '-e s,@bfd_ufile_ptr@,uint64_t,',
}})
build('sed', '$outdir/bfd/bfdver.h', '$srcdir/bfd/version.h', {expr={
string.format('-e s,@bfd_version@,%d%02d%02d%02d%02d,', version[1], version[2], version[3], version[4], version[5]),
@@ -105,12 +101,6 @@ sub('bfd.ninja', function()
if vec:find('iamcu_elf32') then
selarchs.iamcu = true
end
- if vec:find('l1om_elf64') then
- selarchs.l1om = true
- end
- if vec:find('k1om_elf64') then
- selarchs.k1om = true
- end
end
local srcs = {}
local special = {
diff --git a/pkg/binutils/ld/config.h b/pkg/binutils/ld/config.h
@@ -5,8 +5,11 @@
#define DEFAULT_EMIT_GNU_HASH 1
#define DEFAULT_EMIT_SYSV_HASH 0
/* #undef DEFAULT_FLAG_COMPRESS_DEBUG */
+#define DEFAULT_LD_EXECSTACK 1
#define DEFAULT_LD_TEXTREL_CHECK textrel_check_warning
#define DEFAULT_LD_TEXTREL_CHECK_WARNING 1
+#define DEFAULT_LD_WARN_EXECSTACK 2
+#define DEFAULT_LD_WARN_RWX_SEGMENTS 1
#define DEFAULT_LD_Z_RELRO 1
#define DEFAULT_LD_Z_SEPARATE_CODE 1
#define DEFAULT_NEW_DTAGS 1
@@ -27,6 +30,7 @@
#define HAVE_GLOB 1
#define HAVE_INITFINI_ARRAY 1
#define HAVE_INTTYPES_H 1
+/* #undef HAVE_JANSSON */
#define HAVE_LC_MESSAGES 1
#define HAVE_LIMITS_H 1
#define HAVE_LSEEK 1
@@ -53,10 +57,10 @@
#define PACKAGE "ld"
#define PACKAGE_BUGREPORT ""
#define PACKAGE_NAME "ld"
-#define PACKAGE_STRING "ld 2.38"
+#define PACKAGE_STRING "ld 2.39"
#define PACKAGE_TARNAME "ld"
#define PACKAGE_URL ""
-#define PACKAGE_VERSION "2.38"
+#define PACKAGE_VERSION "2.39"
#define SIZEOF_VOID_P 8
#define STDC_HEADERS 1
#define SUPPORT_ERROR_HANDLING_SCRIPT 1
@@ -76,7 +80,7 @@
#ifndef __EXTENSIONS__
# define __EXTENSIONS__ 1
#endif
-#define VERSION "2.38"
+#define VERSION "2.39"
/* #undef YYTEXT_POINTER */
#ifndef _DARWIN_USE_64_BIT_INODE
# define _DARWIN_USE_64_BIT_INODE 1
diff --git a/pkg/binutils/opcodes/config.h b/pkg/binutils/opcodes/config.h
@@ -21,10 +21,10 @@
#define PACKAGE "opcodes"
#define PACKAGE_BUGREPORT ""
#define PACKAGE_NAME "opcodes"
-#define PACKAGE_STRING "opcodes 2.38"
+#define PACKAGE_STRING "opcodes 2.39"
#define PACKAGE_TARNAME "opcodes"
#define PACKAGE_URL ""
-#define PACKAGE_VERSION "2.38"
+#define PACKAGE_VERSION "2.39"
#define SIZEOF_VOID_P 8
#define STDC_HEADERS 1
#ifndef _ALL_SOURCE
@@ -42,7 +42,7 @@
#ifndef __EXTENSIONS__
# define __EXTENSIONS__ 1
#endif
-#define VERSION "2.38"
+#define VERSION "2.39"
/* #undef _MINIX */
/* #undef _POSIX_1_SOURCE */
/* #undef _POSIX_SOURCE */
diff --git a/pkg/binutils/patch/0001-libiberty-Implement-pex_unix_exec_child-using-posix_.patch b/pkg/binutils/patch/0001-libiberty-Implement-pex_unix_exec_child-using-posix_.patch
@@ -1,4 +1,4 @@
-From 33fd36d26892e893d4c58ccbe826445a76262c68 Mon Sep 17 00:00:00 2001
+From 8e578ea68fa570aa46f04d4cf1c593ac11732bdf Mon Sep 17 00:00:00 2001
From: Michael Forney <mforney@mforney.org>
Date: Wed, 17 Apr 2019 16:44:05 -0700
Subject: [PATCH] libiberty: Implement pex_unix_exec_child using posix_spawn
@@ -35,10 +35,10 @@ index f7052b5d958..ce79a9e77f2 100644
#undef HAVE_STDINT_H
diff --git a/libiberty/configure b/libiberty/configure
-index e09ddd91e58..a5591fac95d 100755
+index 306c07bd37e..6f85b1fd529 100755
--- a/libiberty/configure
+++ b/libiberty/configure
-@@ -5651,7 +5651,7 @@ host_makefile_frag=${frag}
+@@ -5652,7 +5652,7 @@ host_makefile_frag=${frag}
# It's OK to check for header files. Although the compiler may not be
# able to link anything, it had better be able to at least compile
# something.
@@ -47,7 +47,7 @@ index e09ddd91e58..a5591fac95d 100755
do :
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
ac_fn_c_check_header_preproc "$LINENO" "$ac_header" "$as_ac_Header"
-@@ -6160,9 +6160,9 @@ funcs="$funcs setproctitle"
+@@ -6161,9 +6161,9 @@ funcs="$funcs setproctitle"
vars="sys_errlist sys_nerr sys_siglist"
checkfuncs="__fsetlocking canonicalize_file_name dup3 getrlimit getrusage \
@@ -60,7 +60,7 @@ index e09ddd91e58..a5591fac95d 100755
# Darwin has sbrk, but it is deprecated and that produces build-time warnings
# so do not check for it.
-@@ -6183,7 +6183,7 @@ if test "x" = "y"; then
+@@ -6184,7 +6184,7 @@ if test "x" = "y"; then
index insque \
memchr memcmp memcpy memmem memmove memset mkstemps \
on_exit \
@@ -70,10 +70,10 @@ index e09ddd91e58..a5591fac95d 100755
sbrk setenv setproctitle setrlimit sigsetmask snprintf spawnve spawnvpe \
stpcpy stpncpy strcasecmp strchr strdup \
diff --git a/libiberty/configure.ac b/libiberty/configure.ac
-index f59f35e1f20..134576ea3af 100644
+index 6c1ff9c6093..5d21f383e7d 100644
--- a/libiberty/configure.ac
+++ b/libiberty/configure.ac
-@@ -288,7 +288,7 @@ AC_SUBST_FILE(host_makefile_frag)
+@@ -289,7 +289,7 @@ AC_SUBST_FILE(host_makefile_frag)
# It's OK to check for header files. Although the compiler may not be
# able to link anything, it had better be able to at least compile
# something.
@@ -82,7 +82,7 @@ index f59f35e1f20..134576ea3af 100644
AC_HEADER_SYS_WAIT
AC_HEADER_TIME
-@@ -411,9 +411,9 @@ funcs="$funcs setproctitle"
+@@ -412,9 +412,9 @@ funcs="$funcs setproctitle"
vars="sys_errlist sys_nerr sys_siglist"
checkfuncs="__fsetlocking canonicalize_file_name dup3 getrlimit getrusage \
@@ -95,7 +95,7 @@ index f59f35e1f20..134576ea3af 100644
# Darwin has sbrk, but it is deprecated and that produces build-time warnings
# so do not check for it.
-@@ -434,7 +434,7 @@ if test "x" = "y"; then
+@@ -435,7 +435,7 @@ if test "x" = "y"; then
index insque \
memchr memcmp memcpy memmem memmove memset mkstemps \
on_exit \
@@ -218,5 +218,5 @@ index 850d344ba58..ba3a6d5d38f 100644
/* Subroutine of pex_unix_exec_child. Move OLD_FD to a new file descriptor
--
-2.34.1
+2.35.1
diff --git a/pkg/binutils/patch/0004-bfd-Remove-return-with-expression-in-void-function.patch b/pkg/binutils/patch/0004-bfd-Remove-return-with-expression-in-void-function.patch
@@ -1,34 +0,0 @@
-From b0508ec3e6134825199ba6ff3d8effd369428117 Mon Sep 17 00:00:00 2001
-From: Michael Forney <mforney@mforney.org>
-Date: Thu, 10 Feb 2022 14:51:52 -0800
-Subject: [PATCH] bfd: Remove return with expression in void function
-
-This is not allowed in ISO C (C11 6.8.6.4p1):
-
-> A return statement with an expression shall not appear in a
-> function whose return type is void.
-
-2022-02-10 Michael Forney <mforney@mforney.org>
-
- * bfd.c (bfd_set_gp_value): Remove return with expression
- in void function.
----
- bfd/bfd.c | 2 +-
- 1 file changed, 1 insertion(+), 1 deletion(-)
-
-diff --git a/bfd/bfd.c b/bfd/bfd.c
-index 3e59057d07a..80c9e425754 100644
---- a/bfd/bfd.c
-+++ b/bfd/bfd.c
-@@ -1871,7 +1871,7 @@ DESCRIPTION
- void
- bfd_set_gp_value (bfd *abfd, bfd_vma v)
- {
-- return _bfd_set_gp_value (abfd, v);
-+ _bfd_set_gp_value (abfd, v);
- }
-
- /*
---
-2.34.1
-
diff --git a/pkg/binutils/sha256 b/pkg/binutils/sha256
@@ -1 +1 @@
-e316477a914f567eccc34d5d29785b8b0f5a10208d36bbacedcc39048ecfe024 binutils-2.38.tar.xz
+645c25f563b8adc0a81dbd6a41cffbf4d37083a382e02d5d3df4f65c09516d00 binutils-2.39.tar.xz
diff --git a/pkg/binutils/url b/pkg/binutils/url
@@ -1 +1 @@
-url = "https://ftp.gnu.org/gnu/binutils/binutils-2.38.tar.xz"
+url = "https://ftp.gnu.org/gnu/binutils/binutils-2.39.tar.xz"
diff --git a/pkg/binutils/vec.lua b/pkg/binutils/vec.lua
@@ -24,6 +24,7 @@ return {
alpha_vms_vec={'vms-alpha.c', 'vms-misc.c', 'vms-lib.c'},
alpha_vms_lib_txt_vec={'vms-lib.c', 'vms-misc.c'},
am33_elf32_linux_vec={'elf32-am33lin.c', 'elf32.c', elf},
+ amdgcn_elf64_le_vec={'elf64-amdgcn.c', 'elf64.c', elf},
aout0_be_vec={'aout0.c', 'aout32.c'},
aout64_vec={'demo64.c', 'aout64.c'},
aout_vec={'host-aout.c', 'aout32.c'},
@@ -103,10 +104,6 @@ return {
ia64_pei_vec={'pei-ia64.c', 'pepigen.c', coff},
ip2k_elf32_vec={'elf32-ip2k.c', 'elf32.c', elf},
iq2000_elf32_vec={'elf32-iq2000.c', 'elf32.c', elf},
- k1om_elf64_vec={'elf64-x86-64.c', 'elfxx-x86.c', 'elf-ifunc.c', 'elf64.c', elf},
- k1om_elf64_fbsd_vec={'elf64-x86-64.c', 'elfxx-x86.c', 'elf-ifunc.c', 'elf64.c', elf},
- l1om_elf64_vec={'elf64-x86-64.c', 'elfxx-x86.c', 'elf-ifunc.c', 'elf64.c', elf},
- l1om_elf64_fbsd_vec={'elf64-x86-64.c', 'elfxx-x86.c', 'elf-ifunc.c', 'elf64.c', elf},
lm32_elf32_vec={'elf32-lm32.c', 'elf32.c', elf},
lm32_elf32_fdpic_vec={'elf32-lm32.c', 'elf32.c', elf},
loongarch_elf32_vec={'elf32-loongarch.c', 'elfxx-loongarch.c', 'elf32.c', 'elf-ifunc.c', elf},
@@ -275,7 +272,6 @@ return {
x86_64_pe_vec={'pe-x86_64.c', 'pex64igen.c', coff},
x86_64_pe_big_vec={'pe-x86_64.c', 'pex64igen.c', coff},
x86_64_pei_vec={'pei-x86_64.c', 'pex64igen.c', coff},
- xc16x_elf32_vec={'elf32-xc16x.c', 'elf32.c', elf},
xgate_elf32_vec={'elf32-xgate.c', 'elf32.c', elf},
xstormy16_elf32_vec={'elf32-xstormy16.c', 'elf32.c', elf},
xtensa_elf32_be_vec={'xtensa-isa.c', 'xtensa-modules.c', 'elf32-xtensa.c', 'elf32.c', elf},
diff --git a/pkg/binutils/ver b/pkg/binutils/ver
@@ -1 +1 @@
-2.38 r1
+2.39 r0