commit: 5a2f2d11116a20beffa1b278c4b56c07833f7b1d
parent 3bcba3aa6c63bdcd1d329915615144620642144b
Author: Michael Forney <mforney@mforney.org>
Date: Thu, 28 Jan 2021 16:32:07 -0800
binutils: Update to 2.36
Diffstat:
14 files changed, 51 insertions(+), 48 deletions(-)
diff --git a/pkg/binutils/.gitignore b/pkg/binutils/.gitignore
@@ -1,5 +1,5 @@
/bfd.ninja
-/binutils-2.35.1.tar.xz
+/binutils-2.36.tar.xz
/binutils.ninja
/gas.ninja
/ld.ninja
diff --git a/pkg/binutils/bfd/config.h b/pkg/binutils/bfd/config.h
@@ -41,6 +41,7 @@
#define HAVE_GETUID 1
#define HAVE_HIDDEN 1
#define HAVE_INTTYPES_H 1
+#define HAVE_LIMITS_H 1
#define HAVE_LONG_DOUBLE 1
#define HAVE_LONG_LONG 1
/* #undef HAVE_LWPSTATUS_T */
@@ -96,10 +97,10 @@
#define PACKAGE "bfd"
#define PACKAGE_BUGREPORT ""
#define PACKAGE_NAME "bfd"
-#define PACKAGE_STRING "bfd 2.35.1"
+#define PACKAGE_STRING "bfd 2.36"
#define PACKAGE_TARNAME "bfd"
#define PACKAGE_URL ""
-#define PACKAGE_VERSION "2.35.1"
+#define PACKAGE_VERSION "2.36"
/* #undef SIZEOF_CHAR */
#define SIZEOF_INT 4
#define SIZEOF_LONG 8
@@ -131,7 +132,7 @@
#ifndef __EXTENSIONS__
# define __EXTENSIONS__ 1
#endif
-#define VERSION "2.35.1"
+#define VERSION "2.36"
#ifndef _DARWIN_USE_64_BIT_INODE
# define _DARWIN_USE_64_BIT_INODE 1
#endif
@@ -140,3 +141,4 @@
/* #undef _MINIX */
/* #undef _POSIX_1_SOURCE */
/* #undef _POSIX_SOURCE */
+#define _STRUCTURED_PROC 1
diff --git a/pkg/binutils/binutils/config.h b/pkg/binutils/binutils/config.h
@@ -5,6 +5,7 @@
/* #undef CRAY_STACKSEG_END */
/* #undef C_ALLOCA */
#define DEFAULT_AR_DETERMINISTIC 1
+#define DEFAULT_F_FOR_IFUNC_SYMBOLS 0
#define DEFAULT_STRINGS_ALL 1
/* #undef ENABLE_LIBCTF */
/* #undef ENABLE_NLS */
@@ -65,10 +66,10 @@
#define PACKAGE "binutils"
#define PACKAGE_BUGREPORT ""
#define PACKAGE_NAME "binutils"
-#define PACKAGE_STRING "binutils 2.35.1"
+#define PACKAGE_STRING "binutils 2.36"
#define PACKAGE_TARNAME "binutils"
#define PACKAGE_URL ""
-#define PACKAGE_VERSION "2.35.1"
+#define PACKAGE_VERSION "2.36"
#define SIZEOF_LONG 8
#define SIZEOF_LONG_LONG 8
/* #undef STACK_DIRECTION */
@@ -92,7 +93,7 @@
#ifndef __EXTENSIONS__
# define __EXTENSIONS__ 1
#endif
-#define VERSION "2.35.1"
+#define VERSION "2.36"
/* #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
@@ -20,7 +20,7 @@
#define DEFAULT_RISCV_ATTR 0
/* #undef DEFAULT_RISCV_ISA_SPEC */
/* #undef DEFAULT_RISCV_PRIV_SPEC */
-#define DEFAULT_X86_USED_NOTE 0
+#define DEFAULT_X86_USED_NOTE 1
#define EMULATIONS &i386elf,
/* #undef ENABLE_CHECKING */
/* #undef ENABLE_NLS */
@@ -90,10 +90,10 @@
#define PACKAGE "gas"
#define PACKAGE_BUGREPORT ""
#define PACKAGE_NAME "gas"
-#define PACKAGE_STRING "gas 2.35.1"
+#define PACKAGE_STRING "gas 2.36"
#define PACKAGE_TARNAME "gas"
#define PACKAGE_URL ""
-#define PACKAGE_VERSION "2.35.1"
+#define PACKAGE_VERSION "2.36"
/* #undef STACK_DIRECTION */
#define STDC_HEADERS 1
/* #undef STRICTCOFF */
@@ -125,7 +125,7 @@
# define __EXTENSIONS__ 1
#endif
/* #undef USING_CGEN */
-#define VERSION "2.35.1"
+#define VERSION "2.36"
#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, 35, 1}, {__index=function() return 0 end})
+local version = setmetatable({2, 36}, {__index=function() return 0 end})
local defvec = 'x86_64_elf64_vec'
local selvecs = {[defvec]=true, i386_elf32_vec=true}
local selarchs = {i386=true}
diff --git a/pkg/binutils/ld/config.h b/pkg/binutils/ld/config.h
@@ -60,13 +60,14 @@
#define PACKAGE "ld"
#define PACKAGE_BUGREPORT ""
#define PACKAGE_NAME "ld"
-#define PACKAGE_STRING "ld 2.35.1"
+#define PACKAGE_STRING "ld 2.36"
#define PACKAGE_TARNAME "ld"
#define PACKAGE_URL ""
-#define PACKAGE_VERSION "2.35.1"
+#define PACKAGE_VERSION "2.36"
#define SIZEOF_VOID_P 8
#define STDC_HEADERS 1
#define STRING_WITH_STRINGS 1
+#define SUPPORT_ERROR_HANDLING_SCRIPT 1
/* #undef USE_BINARY_FOPEN */
#ifndef _ALL_SOURCE
# define _ALL_SOURCE 1
@@ -83,7 +84,7 @@
#ifndef __EXTENSIONS__
# define __EXTENSIONS__ 1
#endif
-#define VERSION "2.35.1"
+#define VERSION "2.36"
/* #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.35.1"
+#define PACKAGE_STRING "opcodes 2.36"
#define PACKAGE_TARNAME "opcodes"
#define PACKAGE_URL ""
-#define PACKAGE_VERSION "2.35.1"
+#define PACKAGE_VERSION "2.36"
#define STDC_HEADERS 1
#define STRING_WITH_STRINGS 1
#ifndef _ALL_SOURCE
@@ -42,7 +42,7 @@
#ifndef __EXTENSIONS__
# define __EXTENSIONS__ 1
#endif
-#define VERSION "2.35.1"
+#define VERSION "2.36"
/* #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 f68705915679bbb5e42d553a7f4b284830035502 Mon Sep 17 00:00:00 2001
+From 662b185803a405b9c945e7e2de9766723f6a7ad7 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 f7052b5d95..ce79a9e77f 100644
#undef HAVE_STDINT_H
diff --git a/libiberty/configure b/libiberty/configure
-index 1f8e23f0d2..001b3d2980 100755
+index b6af9baf21..139955e68a 100755
--- a/libiberty/configure
+++ b/libiberty/configure
-@@ -5467,7 +5467,7 @@ host_makefile_frag=${frag}
+@@ -5481,7 +5481,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 1f8e23f0d2..001b3d2980 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"
-@@ -5976,9 +5976,9 @@ funcs="$funcs setproctitle"
+@@ -5990,9 +5990,9 @@ funcs="$funcs setproctitle"
vars="sys_errlist sys_nerr sys_siglist"
checkfuncs="__fsetlocking canonicalize_file_name dup3 getrlimit getrusage \
@@ -60,7 +60,7 @@ index 1f8e23f0d2..001b3d2980 100755
# These are neither executed nor required, but they help keep
# autoheader happy without adding a bunch of text to acconfig.h.
-@@ -5992,7 +5992,7 @@ if test "x" = "y"; then
+@@ -6006,7 +6006,7 @@ if test "x" = "y"; then
index insque \
memchr memcmp memcpy memmem memmove memset mkstemps \
on_exit \
@@ -70,10 +70,10 @@ index 1f8e23f0d2..001b3d2980 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 4e2599c14a..f3323c33a2 100644
+index ad95296397..442c714319 100644
--- a/libiberty/configure.ac
+++ b/libiberty/configure.ac
-@@ -270,7 +270,7 @@ AC_SUBST_FILE(host_makefile_frag)
+@@ -271,7 +271,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 4e2599c14a..f3323c33a2 100644
AC_HEADER_SYS_WAIT
AC_HEADER_TIME
-@@ -393,9 +393,9 @@ funcs="$funcs setproctitle"
+@@ -394,9 +394,9 @@ funcs="$funcs setproctitle"
vars="sys_errlist sys_nerr sys_siglist"
checkfuncs="__fsetlocking canonicalize_file_name dup3 getrlimit getrusage \
@@ -95,7 +95,7 @@ index 4e2599c14a..f3323c33a2 100644
# These are neither executed nor required, but they help keep
# autoheader happy without adding a bunch of text to acconfig.h.
-@@ -409,7 +409,7 @@ if test "x" = "y"; then
+@@ -410,7 +410,7 @@ if test "x" = "y"; then
index insque \
memchr memcmp memcpy memmem memmove memset mkstemps \
on_exit \
@@ -105,7 +105,7 @@ index 4e2599c14a..f3323c33a2 100644
sbrk setenv setproctitle setrlimit sigsetmask snprintf spawnve spawnvpe \
stpcpy stpncpy strcasecmp strchr strdup \
diff --git a/libiberty/pex-unix.c b/libiberty/pex-unix.c
-index 684a49ace6..25823cedd6 100644
+index 8da2fdcf84..c1c93be12b 100644
--- a/libiberty/pex-unix.c
+++ b/libiberty/pex-unix.c
@@ -58,6 +58,9 @@ extern int errno;
@@ -218,5 +218,5 @@ index 684a49ace6..25823cedd6 100644
/* Subroutine of pex_unix_exec_child. Move OLD_FD to a new file descriptor
--
-2.28.0
+2.30.0
diff --git a/pkg/binutils/patch/0002-bfd-Don-t-use-long-double-if-not-available.patch b/pkg/binutils/patch/0002-bfd-Don-t-use-long-double-if-not-available.patch
@@ -1,4 +1,4 @@
-From eabd6eb5545fc2e468834030b5e6dc41e774d1a6 Mon Sep 17 00:00:00 2001
+From 6ff69e64d952818f144829d87e7948bc9004ba80 Mon Sep 17 00:00:00 2001
From: Michael Forney <mforney@mforney.org>
Date: Sun, 19 May 2019 13:48:45 -0700
Subject: [PATCH] bfd: Don't use long double if not available
@@ -8,10 +8,10 @@ Subject: [PATCH] bfd: Don't use long double if not available
1 file changed, 6 insertions(+)
diff --git a/bfd/bfd.c b/bfd/bfd.c
-index 538bdfa5d7..b05387162f 100644
+index f194433883..81648b259d 100644
--- a/bfd/bfd.c
+++ b/bfd/bfd.c
-@@ -858,7 +858,9 @@ union _bfd_doprnt_args
+@@ -862,7 +862,9 @@ union _bfd_doprnt_args
long l;
long long ll;
double d;
@@ -21,7 +21,7 @@ index 538bdfa5d7..b05387162f 100644
void *p;
enum
{
-@@ -867,7 +869,9 @@ union _bfd_doprnt_args
+@@ -871,7 +873,9 @@ union _bfd_doprnt_args
Long,
LongLong,
Double,
@@ -31,7 +31,7 @@ index 538bdfa5d7..b05387162f 100644
Ptr
} type;
};
-@@ -1343,9 +1347,11 @@ error_handler_internal (const char *fmt, va_list ap)
+@@ -1347,9 +1351,11 @@ error_handler_internal (const char *fmt, va_list ap)
case Double:
args[i].d = va_arg (ap, double);
break;
@@ -44,5 +44,5 @@ index 538bdfa5d7..b05387162f 100644
args[i].p = va_arg (ap, void *);
break;
--
-2.28.0
+2.30.0
diff --git a/pkg/binutils/patch/0003-Adjust-style-to-prevent-gcc-warning.patch b/pkg/binutils/patch/0003-Adjust-style-to-prevent-gcc-warning.patch
@@ -1,4 +1,4 @@
-From 371a2b62e6bbd53ca5efc1164553a4d334c936ee Mon Sep 17 00:00:00 2001
+From 7e7d7da3e8d453d1125488cc5cd7c42293b62934 Mon Sep 17 00:00:00 2001
From: Michael Forney <mforney@mforney.org>
Date: Fri, 5 Jun 2020 01:17:51 -0700
Subject: [PATCH] Adjust style to prevent gcc warning
@@ -10,10 +10,10 @@ elsewhere in this file and prevents a conversion overflow warning.
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/bfd/elf.c b/bfd/elf.c
-index 9ca42e10d8..5ee61ffb24 100644
+index 84a5d94281..5631993d15 100644
--- a/bfd/elf.c
+++ b/bfd/elf.c
-@@ -733,8 +733,9 @@ setup_group (bfd *abfd, Elf_Internal_Shdr *hdr, asection *newsect)
+@@ -734,8 +734,9 @@ setup_group (bfd *abfd, Elf_Internal_Shdr *hdr, asection *newsect)
/* If all groups are invalid then fail. */
if (num_group == 0)
{
@@ -25,5 +25,5 @@ index 9ca42e10d8..5ee61ffb24 100644
(_("%pB: no valid group sections found"), abfd);
bfd_set_error (bfd_error_bad_value);
--
-2.28.0
+2.30.0
diff --git a/pkg/binutils/sha256 b/pkg/binutils/sha256
@@ -1 +1 @@
-3ced91db9bf01182b7e420eab68039f2083aed0a214c0424e257eae3ddee8607 binutils-2.35.1.tar.xz
+5788292cc5bbcca0848545af05986f6b17058b105be59e99ba7d0f9eb5336fb8 binutils-2.36.tar.xz
diff --git a/pkg/binutils/url b/pkg/binutils/url
@@ -1 +1 @@
-url = "https://ftp.gnu.org/gnu/binutils/binutils-2.35.1.tar.xz"
+url = "https://ftp.gnu.org/gnu/binutils/binutils-2.36.tar.xz"
diff --git a/pkg/binutils/vec.lua b/pkg/binutils/vec.lua
@@ -188,14 +188,13 @@ return {
powerpc_elf64_vec={'elf64-ppc.c', 'elf64-gen.c', 'elf64.c', elf},
powerpc_elf64_le_vec={'elf64-ppc.c', 'elf64-gen.c', 'elf64.c', elf},
powerpc_elf64_fbsd_vec={'elf64-ppc.c', 'elf64-gen.c', 'elf64.c', elf},
- powerpc_pe_vec={'pe-ppc.c', 'peigen.c', coff},
- powerpc_pe_le_vec={'pe-ppc.c', 'peigen.c', coff},
- powerpc_pei_vec={'pei-ppc.c', 'peigen.c', coff},
- powerpc_pei_le_vec={'pei-ppc.c', 'peigen.c', coff},
+ powerpc_elf64_fbsd_le_vec={'elf64-ppc.c', 'elf64-gen.c', 'elf64.c', elf},
powerpc_xcoff_vec={'coff-rs6000.c', xcoff},
pru_elf32_vec={'elf32-pru.c', 'elf32.c', elf},
- riscv_elf32_vec={'elf32-riscv.c', 'elfxx-riscv.c', 'elf32.c', elf},
- riscv_elf64_vec={'elf64-riscv.c', 'elf64.c', 'elfxx-riscv.c', 'elf32.c', elf},
+ riscv_elf32_vec={'elf32-riscv.c', 'elfxx-riscv.c', 'elf-ifunc.c', 'elf32.c', elf},
+ riscv_elf64_vec={'elf64-riscv.c', 'elf64.c', 'elfxx-riscv.c', 'elf-ifunc.c', 'elf32.c', elf},
+ riscv_elf32_be_vec={'elf32-riscv.c', 'elfxx-riscv.c', 'elf-ifunc.c', 'elf32.c', elf},
+ riscv_elf64_be_vec={'elf64-riscv.c', 'elf64.c', 'elfxx-riscv.c', 'elf-ifunc.c', 'elf32.c', elf},
rl78_elf32_vec={'elf32-rl78.c', 'elf32.c', elf},
rs6000_xcoff64_vec={'coff64-rs6000.c', 'aix5ppc-core.c', xcoff},
rs6000_xcoff64_aix_vec={'coff64-rs6000.c', 'aix5ppc-core.c', xcoff},
diff --git a/pkg/binutils/ver b/pkg/binutils/ver
@@ -1 +1 @@
-2.35.1 r0
+2.36 r0