diff options
| author | Michael Forney <mforney@mforney.org> | 2020-08-14 00:57:23 -0700 |
|---|---|---|
| committer | Michael Forney <mforney@mforney.org> | 2020-08-14 01:07:03 -0700 |
| commit | f345b8be04d5f5be102bbd83597a640a4151c448 (patch) | |
| tree | e94b07d7e16df05b487097e0bfee319dc3e55daa /pkg/binutils/patch | |
| parent | 401be52b833475b40032dd20fc234addd79a17ca (diff) | |
binutils: Update to 2.35
Diffstat (limited to 'pkg/binutils/patch')
| -rw-r--r-- | pkg/binutils/patch/0001-libiberty-Implement-pex_unix_exec_child-using-posix_.patch | 20 | ||||
| -rw-r--r-- | pkg/binutils/patch/0002-bfd-Don-t-use-long-double-if-not-available.patch | 12 | ||||
| -rw-r--r-- | pkg/binutils/patch/0003-Adjust-style-to-prevent-gcc-warning.patch (renamed from pkg/binutils/patch/0005-Adjust-style-to-prevent-gcc-warning.patch) | 8 | ||||
| -rw-r--r-- | pkg/binutils/patch/0003-libctf-Provide-fallback-definitions-for-attribute-ma.patch | 44 | ||||
| -rw-r--r-- | pkg/binutils/patch/0004-libctf-Remove-usage-of-__thread.patch | 27 |
5 files changed, 20 insertions, 91 deletions
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 index ef73c007..7677742f 100644 --- 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 b8be1a9aa4a1235d5ec969690d1d6ff93d08eaa2 Mon Sep 17 00:00:00 2001 +From f68705915679bbb5e42d553a7f4b284830035502 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 7a34dabec3..ecac4db0fb 100755 +index 1f8e23f0d2..001b3d2980 100755 --- a/libiberty/configure +++ b/libiberty/configure -@@ -5288,7 +5288,7 @@ host_makefile_frag=${frag} +@@ -5467,7 +5467,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 7a34dabec3..ecac4db0fb 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" -@@ -5797,9 +5797,9 @@ funcs="$funcs setproctitle" +@@ -5976,9 +5976,9 @@ funcs="$funcs setproctitle" vars="sys_errlist sys_nerr sys_siglist" checkfuncs="__fsetlocking canonicalize_file_name dup3 getrlimit getrusage \ @@ -60,7 +60,7 @@ index 7a34dabec3..ecac4db0fb 100755 # These are neither executed nor required, but they help keep # autoheader happy without adding a bunch of text to acconfig.h. -@@ -5813,7 +5813,7 @@ if test "x" = "y"; then +@@ -5992,7 +5992,7 @@ if test "x" = "y"; then index insque \ memchr memcmp memcpy memmem memmove memset mkstemps \ on_exit \ @@ -70,10 +70,10 @@ index 7a34dabec3..ecac4db0fb 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 f1ce76010c..9220ae2837 100644 +index 4e2599c14a..f3323c33a2 100644 --- a/libiberty/configure.ac +++ b/libiberty/configure.ac -@@ -267,7 +267,7 @@ AC_SUBST_FILE(host_makefile_frag) +@@ -270,7 +270,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 f1ce76010c..9220ae2837 100644 AC_HEADER_SYS_WAIT AC_HEADER_TIME -@@ -390,9 +390,9 @@ funcs="$funcs setproctitle" +@@ -393,9 +393,9 @@ funcs="$funcs setproctitle" vars="sys_errlist sys_nerr sys_siglist" checkfuncs="__fsetlocking canonicalize_file_name dup3 getrlimit getrusage \ @@ -95,7 +95,7 @@ index f1ce76010c..9220ae2837 100644 # These are neither executed nor required, but they help keep # autoheader happy without adding a bunch of text to acconfig.h. -@@ -406,7 +406,7 @@ if test "x" = "y"; then +@@ -409,7 +409,7 @@ if test "x" = "y"; then index insque \ memchr memcmp memcpy memmem memmove memset mkstemps \ on_exit \ @@ -218,5 +218,5 @@ index 684a49ace6..25823cedd6 100644 /* Subroutine of pex_unix_exec_child. Move OLD_FD to a new file descriptor -- -2.25.1 +2.28.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 index 8bbd40ab..7bca1eed 100644 --- 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 7ae72f3ab19b802de9cc290d2f8aa0cb8bead54b Mon Sep 17 00:00:00 2001 +From eabd6eb5545fc2e468834030b5e6dc41e774d1a6 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 b1050626b6..b3d0b67fac 100644 +index 538bdfa5d7..b05387162f 100644 --- a/bfd/bfd.c +++ b/bfd/bfd.c -@@ -854,7 +854,9 @@ union _bfd_doprnt_args +@@ -858,7 +858,9 @@ union _bfd_doprnt_args long l; long long ll; double d; @@ -21,7 +21,7 @@ index b1050626b6..b3d0b67fac 100644 void *p; enum { -@@ -863,7 +865,9 @@ union _bfd_doprnt_args +@@ -867,7 +869,9 @@ union _bfd_doprnt_args Long, LongLong, Double, @@ -31,7 +31,7 @@ index b1050626b6..b3d0b67fac 100644 Ptr } type; }; -@@ -1339,9 +1343,11 @@ error_handler_internal (const char *fmt, va_list ap) +@@ -1343,9 +1347,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 b1050626b6..b3d0b67fac 100644 args[i].p = va_arg (ap, void *); break; -- -2.25.1 +2.28.0 diff --git a/pkg/binutils/patch/0005-Adjust-style-to-prevent-gcc-warning.patch b/pkg/binutils/patch/0003-Adjust-style-to-prevent-gcc-warning.patch index 16d0c281..5d9be9f1 100644 --- a/pkg/binutils/patch/0005-Adjust-style-to-prevent-gcc-warning.patch +++ b/pkg/binutils/patch/0003-Adjust-style-to-prevent-gcc-warning.patch @@ -1,4 +1,4 @@ -From b0c9a9929385469f431739a366e8ac9d61d0ac7b Mon Sep 17 00:00:00 2001 +From 371a2b62e6bbd53ca5efc1164553a4d334c936ee 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 a8d98a60f4..a5872a57a1 100644 +index 9ca42e10d8..5ee61ffb24 100644 --- a/bfd/elf.c +++ b/bfd/elf.c -@@ -748,8 +748,9 @@ setup_group (bfd *abfd, Elf_Internal_Shdr *hdr, asection *newsect) +@@ -733,8 +733,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 a8d98a60f4..a5872a57a1 100644 (_("%pB: no valid group sections found"), abfd); bfd_set_error (bfd_error_bad_value); -- -2.27.0 +2.28.0 diff --git a/pkg/binutils/patch/0003-libctf-Provide-fallback-definitions-for-attribute-ma.patch b/pkg/binutils/patch/0003-libctf-Provide-fallback-definitions-for-attribute-ma.patch deleted file mode 100644 index f556c6fd..00000000 --- a/pkg/binutils/patch/0003-libctf-Provide-fallback-definitions-for-attribute-ma.patch +++ /dev/null @@ -1,44 +0,0 @@ -From 503a200be10dbed6f057eb0a69e2c176ffec3fa5 Mon Sep 17 00:00:00 2001 -From: Michael Forney <mforney@mforney.org> -Date: Tue, 19 Nov 2019 19:20:02 -0800 -Subject: [PATCH] libctf: Provide fallback definitions for attribute macros - ---- - libctf/ChangeLog | 5 +++++ - libctf/ctf-impl.h | 7 +++++++ - 2 files changed, 12 insertions(+) - -diff --git a/libctf/ChangeLog b/libctf/ChangeLog -index 93462c7e45..b472cf4d64 100644 ---- a/libctf/ChangeLog -+++ b/libctf/ChangeLog -@@ -1,3 +1,8 @@ -+2019-11-19 Michael Forney <mforney@mforney.org> -+ -+ * ctf-impl.h: Provide fallback for _libctf_printflike_, -+ _libctf_unlikely_, _libctf_unused_, and _libctf_malloc_ macros. -+ - 2020-02-01 Nick Clifton <nickc@redhat.com> - - Binutils 2.34 release. -diff --git a/libctf/ctf-impl.h b/libctf/ctf-impl.h -index 267801d12d..dd9a4f1c7c 100644 ---- a/libctf/ctf-impl.h -+++ b/libctf/ctf-impl.h -@@ -59,6 +59,13 @@ extern "C" - #define _libctf_unused_ __attribute__ ((__unused__)) - #define _libctf_malloc_ __attribute__((__malloc__)) - -+#else -+ -+#define _libctf_printflike_(string_index,first_to_check) -+#define _libctf_unlikely_(x) (x) -+#define _libctf_unused_ -+#define _libctf_malloc_ -+ - #endif - - /* libctf in-memory state. */ --- -2.25.1 - diff --git a/pkg/binutils/patch/0004-libctf-Remove-usage-of-__thread.patch b/pkg/binutils/patch/0004-libctf-Remove-usage-of-__thread.patch deleted file mode 100644 index beae73fa..00000000 --- a/pkg/binutils/patch/0004-libctf-Remove-usage-of-__thread.patch +++ /dev/null @@ -1,27 +0,0 @@ -From b1d62f15c5a4b89df12aca33a58fe9405bf53a67 Mon Sep 17 00:00:00 2001 -From: Michael Forney <mforney@mforney.org> -Date: Tue, 19 Nov 2019 19:33:01 -0800 -Subject: [PATCH] libctf: Remove usage of __thread - -We only use libctf for building single-threaded binutils, so __thread -is not necessary. ---- - libctf/ctf-archive.c | 2 +- - 1 file changed, 1 insertion(+), 1 deletion(-) - -diff --git a/libctf/ctf-archive.c b/libctf/ctf-archive.c -index 73d772ffc3..4896aa721b 100644 ---- a/libctf/ctf-archive.c -+++ b/libctf/ctf-archive.c -@@ -45,7 +45,7 @@ static int arc_mmap_writeout (int fd, void *header, size_t headersz, - static int arc_mmap_unmap (void *header, size_t headersz, const char **errmsg); - - /* bsearch() internal state. */ --static __thread char *search_nametbl; -+static char *search_nametbl; - - /* Write out a CTF archive to the start of the file referenced by the passed-in - fd. The entries in CTF_FILES are referenced by name: the names are passed in --- -2.25.1 - |
