logo

oasis

Own branch of Oasis Linux (upstream: <https://git.sr.ht/~mcf/oasis/>) git clone https://anongit.hacktivis.me/git/oasis.git
commit: 0d69afde2ad6ca4ba28af2f2920aabda174cf04a
parent 8fb3cb14048523545f0b6073c0f797d7442812b9
Author: Michael Forney <mforney@mforney.org>
Date:   Mon, 19 Jul 2021 15:28:56 -0700

binutils: Update to 2.37

Diffstat:

Mpkg/binutils/.gitignore2+-
Mpkg/binutils/arch.lua2+-
Mpkg/binutils/bfd/config.h34+++++-----------------------------
Mpkg/binutils/binutils/config.h36++++++++++++------------------------
Mpkg/binutils/gas/config.h37++++---------------------------------
Mpkg/binutils/gen.lua6+++---
Mpkg/binutils/ld/config.h18+++++-------------
Mpkg/binutils/opcodes/config.h9++++-----
Rpkg/binutils/patch/0003-Adjust-style-to-prevent-gcc-warning.patch -> pkg/binutils/patch/0002-Adjust-style-to-prevent-gcc-warning.patch0
Dpkg/binutils/patch/0002-bfd-Don-t-use-long-double-if-not-available.patch48------------------------------------------------
Apkg/binutils/patch/0003-Avoid-void-pointer-arithmetic.patch27+++++++++++++++++++++++++++
Dpkg/binutils/patch/0004-dwarf-Don-t-omit-second-operand-of-operator.patch47-----------------------------------------------
Mpkg/binutils/sha2562+-
Mpkg/binutils/url2+-
Mpkg/binutils/vec.lua2--
Mpkg/binutils/ver2+-
16 files changed, 65 insertions(+), 209 deletions(-)

diff --git a/pkg/binutils/.gitignore b/pkg/binutils/.gitignore @@ -1,5 +1,5 @@ /bfd.ninja -/binutils-2.36.1.tar.xz +/binutils-2.37.tar.xz /binutils.ninja /gas.ninja /ld.ninja diff --git a/pkg/binutils/arch.lua b/pkg/binutils/arch.lua @@ -7,7 +7,7 @@ return { avr={'avr-dis.c'}, bfin={'bfin-dis.c'}, cr16={'cr16-dis.c', 'cr16-opc.c'}, - cris={'cris-dis.c', 'cris-opc.c', 'cgen-bitset.c'}, + cris={'cris_desc.c', 'cris-dis.c', 'cris-opc.c', 'cgen-bitset.c'}, crx={'crx-dis.c', 'crx-opc.c'}, csky={'csky-dis.c'}, d10v={'d10v-dis.c', 'd10v-opc.c'}, diff --git a/pkg/binutils/bfd/config.h b/pkg/binutils/bfd/config.h @@ -4,26 +4,19 @@ #define __CONFIG_H__ 1 #define CORE_HEADER "hosts/x86-64linux.h" #define DEFAULT_LD_Z_SEPARATE_CODE 1 +/* #undef ENABLE_CHECKING */ /* #undef ENABLE_NLS */ -#define HAVE_ALLOCA_H 1 #define HAVE_DECL_ASPRINTF 1 #define HAVE_DECL_BASENAME 1 #define HAVE_DECL_FFS 1 -#define HAVE_DECL_FREE 1 +#define HAVE_DECL_FOPEN64 1 #define HAVE_DECL_FSEEKO 1 #define HAVE_DECL_FSEEKO64 1 #define HAVE_DECL_FTELLO 1 #define HAVE_DECL_FTELLO64 1 -#define HAVE_DECL_GETENV 1 -#define HAVE_DECL_MALLOC 1 -#define HAVE_DECL_REALLOC 1 -#define HAVE_DECL_SNPRINTF 1 #define HAVE_DECL_STPCPY 1 #define HAVE_DECL_STRNLEN 1 -#define HAVE_DECL_STRSTR 1 #define HAVE_DECL_VASPRINTF 1 -#define HAVE_DECL_VSNPRINTF 1 -#define HAVE_DIRENT_H 1 #define HAVE_DLFCN_H 1 #define HAVE_FCNTL 1 #define HAVE_FCNTL_H 1 @@ -41,9 +34,6 @@ #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 */ /* #undef HAVE_LWPSTATUS_T_PR_CONTEXT */ /* #undef HAVE_LWPSTATUS_T_PR_FPREG */ @@ -53,7 +43,6 @@ #define HAVE_MEMORY_H 1 #define HAVE_MMAP 1 #define HAVE_MPROTECT 1 -/* #undef HAVE_NDIR_H */ /* #undef HAVE_PRPSINFO32_T */ /* #undef HAVE_PRPSINFO32_T_PR_PID */ #define HAVE_PRPSINFO_T 1 @@ -69,48 +58,35 @@ /* #undef HAVE_PSTATUS32_T */ /* #undef HAVE_PSTATUS_T */ /* #undef HAVE_PXSTATUS_T */ -#define HAVE_SETITIMER 1 -#define HAVE_STDDEF_H 1 #define HAVE_STDINT_H 1 #define HAVE_STDLIB_H 1 #define HAVE_STRINGS_H 1 #define HAVE_STRING_H 1 -#define HAVE_STRTOULL 1 /* #undef HAVE_ST_C_IMPL */ #define HAVE_SYSCONF 1 -/* #undef HAVE_SYS_DIR_H */ #define HAVE_SYS_FILE_H 1 -/* #undef HAVE_SYS_NDIR_H */ #define HAVE_SYS_PARAM_H 1 #define HAVE_SYS_PROCFS_H 1 #define HAVE_SYS_RESOURCE_H 1 #define HAVE_SYS_STAT_H 1 -#define HAVE_SYS_TIME_H 1 #define HAVE_SYS_TYPES_H 1 -#define HAVE_TIME_H 1 #define HAVE_UNISTD_H 1 -#define HAVE_WCHAR_H 1 -#define HAVE_WCTYPE_H 1 /* #undef HAVE_WIN32_PSTATUS_T */ /* #undef HAVE_WINDOWS_H */ #define LT_OBJDIR ".libs/" #define PACKAGE "bfd" #define PACKAGE_BUGREPORT "" #define PACKAGE_NAME "bfd" -#define PACKAGE_STRING "bfd 2.36.1" +#define PACKAGE_STRING "bfd 2.37" #define PACKAGE_TARNAME "bfd" #define PACKAGE_URL "" -#define PACKAGE_VERSION "2.36.1" -/* #undef SIZEOF_CHAR */ +#define PACKAGE_VERSION "2.37" #define SIZEOF_INT 4 #define SIZEOF_LONG 8 #define SIZEOF_LONG_LONG 8 #define SIZEOF_OFF_T 8 -/* #undef SIZEOF_SHORT */ #define SIZEOF_VOID_P 8 #define STDC_HEADERS 1 -#define STRING_WITH_STRINGS 1 -#define TIME_WITH_SYS_TIME 1 /* #undef TRAD_HEADER */ /* #undef USE_64_BIT_ARCHIVE */ /* #undef USE_BINARY_FOPEN */ @@ -132,7 +108,7 @@ #ifndef __EXTENSIONS__ # define __EXTENSIONS__ 1 #endif -#define VERSION "2.36.1" +#define VERSION "2.37" #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 @@ -2,28 +2,21 @@ # error config.h must be #included before system headers #endif #define __CONFIG_H__ 1 -/* #undef CRAY_STACKSEG_END */ -/* #undef C_ALLOCA */ #define DEFAULT_AR_DETERMINISTIC 1 +#define DEFAULT_FOR_FOLLOW_LINKS 1 #define DEFAULT_F_FOR_IFUNC_SYMBOLS 0 #define DEFAULT_STRINGS_ALL 1 +/* #undef ENABLE_CHECKING */ /* #undef ENABLE_LIBCTF */ /* #undef ENABLE_NLS */ #define EXECUTABLE_SUFFIX "" -#define HAVE_ALLOCA 1 -#define HAVE_ALLOCA_H 1 #define HAVE_DECL_ASPRINTF 1 #define HAVE_DECL_ENVIRON 1 -#define HAVE_DECL_FPRINTF 1 #define HAVE_DECL_GETC_UNLOCKED 1 -#define HAVE_DECL_GETENV 1 #define HAVE_DECL_GETOPT 1 #define HAVE_DECL_SBRK 1 -#define HAVE_DECL_SNPRINTF 1 #define HAVE_DECL_STPCPY 1 #define HAVE_DECL_STRNLEN 1 -#define HAVE_DECL_STRSTR 1 -#define HAVE_DECL_VSNPRINTF 1 #define HAVE_DLFCN_H 1 /* #undef HAVE_EXECUTABLE_SUFFIX */ #define HAVE_FCNTL_H 1 @@ -34,49 +27,45 @@ #define HAVE_INTTYPES_H 1 #define HAVE_LC_MESSAGES 1 /* #undef HAVE_LIBDEBUGINFOD */ -#define HAVE_LIMITS_H 1 -#define HAVE_LOCALE_H 1 -#define HAVE_LONG_LONG 1 #define HAVE_MBSTATE_T 1 #define HAVE_MEMORY_H 1 #define HAVE_MKDTEMP 1 #define HAVE_MKSTEMP 1 #define HAVE_MMAP 1 #define HAVE_SBRK 1 -#define HAVE_SETLOCALE 1 -/* #undef HAVE_SETMODE */ #define HAVE_STDINT_H 1 #define HAVE_STDLIB_H 1 -#define HAVE_STRCOLL 1 #define HAVE_STRINGS_H 1 #define HAVE_STRING_H 1 +/* #undef HAVE_STRUCT_STAT_ST_ATIMENSEC */ +/* #undef HAVE_STRUCT_STAT_ST_ATIMESPEC_TV_NSEC */ +/* #undef HAVE_STRUCT_STAT_ST_ATIM_ST__TIM_TV_NSEC */ +#define HAVE_STRUCT_STAT_ST_ATIM_TV_NSEC 1 #define HAVE_SYS_FILE_H 1 #define HAVE_SYS_PARAM_H 1 #define HAVE_SYS_STAT_H 1 +#define HAVE_SYS_TIME_H 1 #define HAVE_SYS_TYPES_H 1 #define HAVE_SYS_WAIT_H 1 -#define HAVE_TIME_T_IN_TIME_H 1 -#define HAVE_TIME_T_IN_TYPES_H 1 #define HAVE_UNISTD_H 1 +#define HAVE_UTIMENSAT 1 #define HAVE_UTIMES 1 -#define HAVE_WCHAR_H 1 /* #undef HAVE_WINDOWS_H */ #define ICONV_CONST #define LT_OBJDIR ".libs/" #define PACKAGE "binutils" #define PACKAGE_BUGREPORT "" #define PACKAGE_NAME "binutils" -#define PACKAGE_STRING "binutils 2.36.1" +#define PACKAGE_STRING "binutils 2.37" #define PACKAGE_TARNAME "binutils" #define PACKAGE_URL "" -#define PACKAGE_VERSION "2.36.1" +#define PACKAGE_VERSION "2.37" #define SIZEOF_LONG 8 #define SIZEOF_LONG_LONG 8 -/* #undef STACK_DIRECTION */ #define STDC_HEADERS 1 -#define STRING_WITH_STRINGS 1 #define TARGET "x86_64-pc-linux-musl" #define TARGET_PREPENDS_UNDERSCORE 0 +#define TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC 1 /* #undef USE_BINARY_FOPEN */ #ifndef _ALL_SOURCE # define _ALL_SOURCE 1 @@ -93,7 +82,7 @@ #ifndef __EXTENSIONS__ # define __EXTENSIONS__ 1 #endif -#define VERSION "2.36.1" +#define VERSION "2.37" /* #undef YYTEXT_POINTER */ #ifndef _DARWIN_USE_64_BIT_INODE # define _DARWIN_USE_64_BIT_INODE 1 @@ -103,4 +92,3 @@ /* #undef _MINIX */ /* #undef _POSIX_1_SOURCE */ /* #undef _POSIX_SOURCE */ -/* #undef size_t */ diff --git a/pkg/binutils/gas/config.h b/pkg/binutils/gas/config.h @@ -5,9 +5,7 @@ /* #undef AC_APPLE_UNIVERSAL_BUILD */ /* #undef AIX_WEAK_SUPPORT */ /* #undef BROKEN_ASSERT */ -/* #undef CRAY_STACKSEG_END */ /* #undef CROSS_COMPILE */ -/* #undef C_ALLOCA */ #define DEFAULT_ARCH "x86_64" /* #undef DEFAULT_CRIS_ARCH */ #define DEFAULT_EMULATION "i386elf" @@ -24,28 +22,14 @@ #define EMULATIONS &i386elf, /* #undef ENABLE_CHECKING */ /* #undef ENABLE_NLS */ -#define HAVE_ALLOCA 1 -#define HAVE_ALLOCA_H 1 #define HAVE_DECL_ASPRINTF 1 -#define HAVE_DECL_FREE 1 -#define HAVE_DECL_GETENV 1 #define HAVE_DECL_GETOPT 1 -#define HAVE_DECL_MALLOC 1 #define HAVE_DECL_MEMPCPY 1 -#define HAVE_DECL_REALLOC 1 #define HAVE_DECL_STPCPY 1 -#define HAVE_DECL_STRSTR 1 -#define HAVE_DECL_VSNPRINTF 1 #define HAVE_DLFCN_H 1 -#define HAVE_ERRNO_H 1 #define HAVE_INTTYPES_H 1 #define HAVE_LC_MESSAGES 1 -#define HAVE_LIMITS_H 1 -#define HAVE_LOCALE_H 1 #define HAVE_MEMORY_H 1 -/* #undef HAVE_REMOVE */ -#define HAVE_SBRK 1 -#define HAVE_SETLOCALE 1 #define HAVE_STDINT_H 1 #define HAVE_STDLIB_H 1 #define HAVE_STRINGS_H 1 @@ -55,10 +39,8 @@ #define HAVE_ST_MTIM_TV_SEC 1 #define HAVE_SYS_STAT_H 1 #define HAVE_SYS_TYPES_H 1 -#define HAVE_TIME_H 1 -#define HAVE_TM_GMTOFF 1 +/* #undef HAVE_TM_GMTOFF */ #define HAVE_UNISTD_H 1 -#define HAVE_UNLINK 1 /* #undef HAVE_WINDOWS_H */ /* #undef I386COFF */ #define LT_OBJDIR ".libs/" @@ -75,12 +57,7 @@ /* #undef NDS32_DEFAULT_ZOL_EXT */ /* #undef NDS32_LINUX_TOOLCHAIN */ /* #undef NEED_DECLARATION_ENVIRON */ -/* #undef NEED_DECLARATION_ERRNO */ /* #undef NEED_DECLARATION_FFS */ -/* #undef NEED_DECLARATION_FREE */ -/* #undef NEED_DECLARATION_MALLOC */ -/* #undef NEED_DECLARATION_SBRK */ -/* #undef NEED_DECLARATION_STRSTR */ /* #undef OBJ_MAYBE_AOUT */ /* #undef OBJ_MAYBE_COFF */ /* #undef OBJ_MAYBE_ECOFF */ @@ -90,14 +67,12 @@ #define PACKAGE "gas" #define PACKAGE_BUGREPORT "" #define PACKAGE_NAME "gas" -#define PACKAGE_STRING "gas 2.36.1" +#define PACKAGE_STRING "gas 2.37" #define PACKAGE_TARNAME "gas" #define PACKAGE_URL "" -#define PACKAGE_VERSION "2.36.1" -/* #undef STACK_DIRECTION */ +#define PACKAGE_VERSION "2.37" #define STDC_HEADERS 1 /* #undef STRICTCOFF */ -#define STRING_WITH_STRINGS 1 #define TARGET_ALIAS "x86_64-linux-musl" /* #undef TARGET_BYTES_BIG_ENDIAN */ #define TARGET_CANONICAL "x86_64-pc-linux-musl" @@ -125,7 +100,7 @@ # define __EXTENSIONS__ 1 #endif /* #undef USING_CGEN */ -#define VERSION "2.36.1" +#define VERSION "2.37" #if defined AC_APPLE_UNIVERSAL_BUILD # if defined __BIG_ENDIAN__ # define WORDS_BIGENDIAN 1 @@ -144,7 +119,3 @@ /* #undef _MINIX */ /* #undef _POSIX_1_SOURCE */ /* #undef _POSIX_SOURCE */ -#ifndef __cplusplus -/* #undef inline */ -#endif -/* #undef size_t */ diff --git a/pkg/binutils/gen.lua b/pkg/binutils/gen.lua @@ -291,9 +291,9 @@ end) sub('ld.ninja', function() cflags{ - '-D ELF_LIST_OPTIONS=TRUE', - '-D ELF_SHLIB_LIST_OPTIONS=TRUE', - '-D ELF_PLT_UNWIND_LIST_OPTIONS=TRUE', + '-D ELF_LIST_OPTIONS=true', + '-D ELF_SHLIB_LIST_OPTIONS=true', + '-D ELF_PLT_UNWIND_LIST_OPTIONS=true', string.format([[-D 'BINDIR="%s/bin"']], config.prefix), string.format([[-D 'SCRIPTDIR="%s/%s/lib"']], config.prefix, config.target.platform), string.format([[-D 'TOOLBINDIR="%s/%s/bin"']], config.prefix, config.target.platform), diff --git a/pkg/binutils/ld/config.h b/pkg/binutils/ld/config.h @@ -10,6 +10,7 @@ #define DEFAULT_LD_Z_RELRO 1 #define DEFAULT_LD_Z_SEPARATE_CODE 1 #define DEFAULT_NEW_DTAGS 1 +/* #undef ENABLE_CHECKING */ /* #undef ENABLE_LIBCTF */ /* #undef ENABLE_NLS */ /* #undef EXTRA_SHLIB_EXTENSION */ @@ -17,12 +18,8 @@ #define HAVE_CLOSE 1 #define HAVE_DECL_ASPRINTF 1 #define HAVE_DECL_ENVIRON 1 -#define HAVE_DECL_FREE 1 -#define HAVE_DECL_GETENV 1 #define HAVE_DECL_GETOPT 1 #define HAVE_DECL_SBRK 1 -#define HAVE_DECL_STRSTR 1 -#define HAVE_DIRENT_H 1 #define HAVE_DLFCN_H 1 /* #undef HAVE_ELF_HINTS_H */ #define HAVE_FCNTL_H 1 @@ -32,23 +29,19 @@ #define HAVE_INTTYPES_H 1 #define HAVE_LC_MESSAGES 1 #define HAVE_LIMITS_H 1 -#define HAVE_LOCALE_H 1 #define HAVE_LSEEK 1 #define HAVE_MEMORY_H 1 #define HAVE_MKSTEMP 1 #define HAVE_MMAP 1 -/* #undef HAVE_NDIR_H */ #define HAVE_OPEN 1 #define HAVE_REALPATH 1 #define HAVE_SBRK 1 -#define HAVE_SETLOCALE 1 #define HAVE_STDINT_H 1 #define HAVE_STDLIB_H 1 #define HAVE_STRINGS_H 1 #define HAVE_STRING_H 1 -/* #undef HAVE_SYS_DIR_H */ #define HAVE_SYS_FILE_H 1 -/* #undef HAVE_SYS_NDIR_H */ +#define HAVE_SYS_MMAN_H 1 #define HAVE_SYS_PARAM_H 1 #define HAVE_SYS_STAT_H 1 #define HAVE_SYS_TIME_H 1 @@ -60,13 +53,12 @@ #define PACKAGE "ld" #define PACKAGE_BUGREPORT "" #define PACKAGE_NAME "ld" -#define PACKAGE_STRING "ld 2.36.1" +#define PACKAGE_STRING "ld 2.37" #define PACKAGE_TARNAME "ld" #define PACKAGE_URL "" -#define PACKAGE_VERSION "2.36.1" +#define PACKAGE_VERSION "2.37" #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 @@ -84,7 +76,7 @@ #ifndef __EXTENSIONS__ # define __EXTENSIONS__ 1 #endif -#define VERSION "2.36.1" +#define VERSION "2.37" /* #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 @@ -2,12 +2,12 @@ # error config.h must be #included before system headers #endif #define __CONFIG_H__ 1 +/* #undef ENABLE_CHECKING */ /* #undef ENABLE_NLS */ #define HAVE_DECL_BASENAME 1 #define HAVE_DECL_STPCPY 1 #define HAVE_DLFCN_H 1 #define HAVE_INTTYPES_H 1 -#define HAVE_LIMITS_H 1 #define HAVE_MEMORY_H 1 #define HAVE_SIGSETJMP 1 #define HAVE_STDINT_H 1 @@ -21,12 +21,11 @@ #define PACKAGE "opcodes" #define PACKAGE_BUGREPORT "" #define PACKAGE_NAME "opcodes" -#define PACKAGE_STRING "opcodes 2.36.1" +#define PACKAGE_STRING "opcodes 2.37" #define PACKAGE_TARNAME "opcodes" #define PACKAGE_URL "" -#define PACKAGE_VERSION "2.36.1" +#define PACKAGE_VERSION "2.37" #define STDC_HEADERS 1 -#define STRING_WITH_STRINGS 1 #ifndef _ALL_SOURCE # define _ALL_SOURCE 1 #endif @@ -42,7 +41,7 @@ #ifndef __EXTENSIONS__ # define __EXTENSIONS__ 1 #endif -#define VERSION "2.36.1" +#define VERSION "2.37" /* #undef _MINIX */ /* #undef _POSIX_1_SOURCE */ /* #undef _POSIX_SOURCE */ diff --git a/pkg/binutils/patch/0003-Adjust-style-to-prevent-gcc-warning.patch b/pkg/binutils/patch/0002-Adjust-style-to-prevent-gcc-warning.patch 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,48 +0,0 @@ -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 - ---- - bfd/bfd.c | 6 ++++++ - 1 file changed, 6 insertions(+) - -diff --git a/bfd/bfd.c b/bfd/bfd.c -index f194433883..81648b259d 100644 ---- a/bfd/bfd.c -+++ b/bfd/bfd.c -@@ -862,7 +862,9 @@ union _bfd_doprnt_args - long l; - long long ll; - double d; -+#if defined (__GNUC__) || defined (HAVE_LONG_DOUBLE) - long double ld; -+#endif - void *p; - enum - { -@@ -871,7 +873,9 @@ union _bfd_doprnt_args - Long, - LongLong, - Double, -+#if defined (__GNUC__) || defined (HAVE_LONG_DOUBLE) - LongDouble, -+#endif - Ptr - } type; - }; -@@ -1347,9 +1351,11 @@ error_handler_internal (const char *fmt, va_list ap) - case Double: - args[i].d = va_arg (ap, double); - break; -+#if defined (__GNUC__) || defined (HAVE_LONG_DOUBLE) - case LongDouble: - args[i].ld = va_arg (ap, long double); - break; -+#endif - case Ptr: - args[i].p = va_arg (ap, void *); - break; --- -2.30.0 - diff --git a/pkg/binutils/patch/0003-Avoid-void-pointer-arithmetic.patch b/pkg/binutils/patch/0003-Avoid-void-pointer-arithmetic.patch @@ -0,0 +1,27 @@ +From 412191da499f4f96dd9138a2868b16947b8d8f70 Mon Sep 17 00:00:00 2001 +From: Michael Forney <mforney@mforney.org> +Date: Mon, 19 Jul 2021 10:31:05 -0700 +Subject: [PATCH] Avoid void pointer arithmetic + +This is not strictly allowed in ISO C, which requires the pointed-to +type to be a complete object type. +--- + bfd/peicode.h | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/bfd/peicode.h b/bfd/peicode.h +index c84b135e1eb..41955975cdc 100644 +--- a/bfd/peicode.h ++++ b/bfd/peicode.h +@@ -1474,7 +1474,7 @@ pe_bfd_object_p (bfd * abfd) + if (opt_hdr_size != 0) + { + bfd_size_type amt = opt_hdr_size; +- void * opthdr; ++ bfd_byte * opthdr; + + /* PR 17521 file: 230-131433-0.004. */ + if (amt < sizeof (PEAOUTHDR)) +-- +2.32.0 + diff --git a/pkg/binutils/patch/0004-dwarf-Don-t-omit-second-operand-of-operator.patch b/pkg/binutils/patch/0004-dwarf-Don-t-omit-second-operand-of-operator.patch @@ -1,47 +0,0 @@ -From d1fc503c4b4b5558d974e0fb7245ed801c734f82 Mon Sep 17 00:00:00 2001 -From: Michael Forney <mforney@mforney.org> -Date: Sat, 1 May 2021 00:37:01 -0700 -Subject: [PATCH] dwarf: Don't omit second operand of '?' operator - -This is a GNU C extension and is not valid in ISO C. ---- - binutils/ChangeLog | 4 ++++ - binutils/dwarf.c | 10 +++++++--- - 2 files changed, 11 insertions(+), 3 deletions(-) - -diff --git a/binutils/ChangeLog b/binutils/ChangeLog -index 8b08bd0db79..43073320aaa 100644 ---- a/binutils/ChangeLog -+++ b/binutils/ChangeLog -@@ -1,3 +1,7 @@ -+2021-05-01 Michael Forney <mforney@mforney.org> -+ -+ * dwarf.c: Don't omit second operand of '?' operator. -+ - 2021-02-06 Nick Clifton <nickc@redhat.com> - - This is the 2.36.1 release. -diff --git a/binutils/dwarf.c b/binutils/dwarf.c -index 19475e6cec3..f72fc8d8da8 100644 ---- a/binutils/dwarf.c -+++ b/binutils/dwarf.c -@@ -3738,9 +3738,13 @@ process_debug_info (struct dwarf_section * section, - offset_size == 8 ? "64-bit" : "32-bit"); - printf (_(" Version: %d\n"), compunit.cu_version); - if (compunit.cu_version >= 5) -- printf (_(" Unit Type: %s (%x)\n"), -- get_DW_UT_name (compunit.cu_unit_type) ?: "???", -- compunit.cu_unit_type); -+ { -+ const char *name = get_DW_UT_name (compunit.cu_unit_type); -+ -+ printf (_(" Unit Type: %s (%x)\n"), -+ name ? name : "???", -+ compunit.cu_unit_type); -+ } - printf (_(" Abbrev Offset: 0x%s\n"), - dwarf_vmatoa ("x", compunit.cu_abbrev_offset)); - printf (_(" Pointer Size: %d\n"), compunit.cu_pointer_size); --- -2.31.1 - diff --git a/pkg/binutils/sha256 b/pkg/binutils/sha256 @@ -1 +1 @@ -e81d9edf373f193af428a0f256674aea62a9d74dfe93f65192d4eae030b0f3b0 binutils-2.36.1.tar.xz +820d9724f020a3e69cb337893a0b63c2db161dadcb0e06fc11dc29eb1e84a32c binutils-2.37.tar.xz diff --git a/pkg/binutils/url b/pkg/binutils/url @@ -1 +1 @@ -url = "https://ftp.gnu.org/gnu/binutils/binutils-2.36.1.tar.xz" +url = "https://ftp.gnu.org/gnu/binutils/binutils-2.37.tar.xz" diff --git a/pkg/binutils/vec.lua b/pkg/binutils/vec.lua @@ -34,8 +34,6 @@ return { arm_elf32_fdpic_le_vec={'elf32-arm.c', 'elf32.c', 'elf-nacl.c', 'elf-vxworks.c', elf}, arm_elf32_nacl_be_vec={'elf32-arm.c', 'elf32.c', 'elf-nacl.c', 'elf-vxworks.c', elf}, arm_elf32_nacl_le_vec={'elf32-arm.c', 'elf32.c', 'elf-nacl.c', 'elf-vxworks.c', elf}, - arm_elf32_symbian_be_vec={'elf32-arm.c', 'elf32.c', 'elf-nacl.c', 'elf-vxworks.c', elf}, - arm_elf32_symbian_le_vec={'elf32-arm.c', 'elf32.c', 'elf-nacl.c', 'elf-vxworks.c', elf}, arm_elf32_vxworks_be_vec={'elf32-arm.c', 'elf32.c', 'elf-nacl.c', 'elf-vxworks.c', elf}, arm_elf32_vxworks_le_vec={'elf32-arm.c', 'elf32.c', 'elf-nacl.c', 'elf-vxworks.c', elf}, arm_pe_be_vec={'pe-arm.c', 'peigen.c', coff}, diff --git a/pkg/binutils/ver b/pkg/binutils/ver @@ -1 +1 @@ -2.36.1 r1 +2.37 r0