mingw-w64-cross-binutils: Update to version 2.37

This commit is contained in:
Tim Stahlhut 2022-01-15 12:47:42 -05:00
parent cea09175d9
commit 703c9b7225
4 changed files with 747 additions and 968 deletions

View File

@ -1,7 +1,7 @@
From 1316395a096fd327efe88c171a08ba077f6f02df Mon Sep 17 00:00:00 2001 From 520d5017366ff334c8a866aa15abb8cce22fb952 Mon Sep 17 00:00:00 2001
From: Ray Donnelly <mingw.android@gmail.com> From: Ray Donnelly <mingw.android@gmail.com>
Date: Mon, 23 Nov 2015 22:42:53 +0000 Date: Mon, 23 Nov 2015 22:42:53 +0000
Subject: [PATCH 5/5] bfd: Increase _bfd_coff_max_nscns to 65279 Subject: [PATCH] bfd: Increase _bfd_coff_max_nscns to 65279
.. from 32768. This is the value that llvm uses. There's no .. from 32768. This is the value that llvm uses. There's no
indication in the PECOFF specs that 32768 is the limit. indication in the PECOFF specs that 32768 is the limit.
@ -13,50 +13,50 @@ indication in the PECOFF specs that 32768 is the limit.
bfd/coffcode.h | 2 +- bfd/coffcode.h | 2 +-
5 files changed, 5 insertions(+), 5 deletions(-) 5 files changed, 5 insertions(+), 5 deletions(-)
diff --git binutils-2.28.orig/bfd/coff-alpha.c binutils-2.28/bfd/coff-alpha.c diff --git a/bfd/coff-alpha.c b/bfd/coff-alpha.c
index 9ce1975..df65b5f 100644 index 15fea1fde34..c5547259956 100644
--- binutils-2.28.orig/bfd/coff-alpha.c --- a/bfd/coff-alpha.c
+++ binutils-2.28/bfd/coff-alpha.c +++ b/bfd/coff-alpha.c
@@ -2236,7 +2236,7 @@ static const struct ecoff_backend_data alpha_ecoff_backend_data = @@ -2304,7 +2304,7 @@ static const struct ecoff_backend_data alpha_ecoff_backend_data =
alpha_ecoff_swap_filehdr_out, alpha_ecoff_swap_aouthdr_out, alpha_ecoff_swap_filehdr_out, alpha_ecoff_swap_aouthdr_out,
alpha_ecoff_swap_scnhdr_out, alpha_ecoff_swap_scnhdr_out,
FILHSZ, AOUTSZ, SCNHSZ, 0, 0, 0, 0, FILNMLEN, TRUE, FILHSZ, AOUTSZ, SCNHSZ, 0, 0, 0, 0, FILNMLEN, true,
- ECOFF_NO_LONG_SECTION_NAMES, 4, FALSE, 2, 32768, - ECOFF_NO_LONG_SECTION_NAMES, 4, false, 2, 32768,
+ ECOFF_NO_LONG_SECTION_NAMES, 4, FALSE, 2, 65279, + ECOFF_NO_LONG_SECTION_NAMES, 4, false, 2, 65279,
alpha_ecoff_swap_filehdr_in, alpha_ecoff_swap_aouthdr_in, alpha_ecoff_swap_filehdr_in, alpha_ecoff_swap_aouthdr_in,
alpha_ecoff_swap_scnhdr_in, NULL, alpha_ecoff_swap_scnhdr_in, NULL,
alpha_ecoff_bad_format_hook, _bfd_ecoff_set_arch_mach_hook, alpha_ecoff_bad_format_hook, _bfd_ecoff_set_arch_mach_hook,
diff --git binutils-2.28.orig/bfd/coff-mips.c binutils-2.28/bfd/coff-mips.c diff --git a/bfd/coff-mips.c b/bfd/coff-mips.c
index f872ebe..d11fddd 100644 index 963ab249119..935bb0c5702 100644
--- binutils-2.28.orig/bfd/coff-mips.c --- a/bfd/coff-mips.c
+++ binutils-2.28/bfd/coff-mips.c +++ b/bfd/coff-mips.c
@@ -1254,7 +1254,7 @@ static const struct ecoff_backend_data mips_ecoff_backend_data = @@ -1314,7 +1314,7 @@ static const struct ecoff_backend_data mips_ecoff_backend_data =
mips_ecoff_swap_filehdr_out, mips_ecoff_swap_aouthdr_out, mips_ecoff_swap_filehdr_out, mips_ecoff_swap_aouthdr_out,
mips_ecoff_swap_scnhdr_out, mips_ecoff_swap_scnhdr_out,
FILHSZ, AOUTSZ, SCNHSZ, 0, 0, 0, 0, FILNMLEN, TRUE, FILHSZ, AOUTSZ, SCNHSZ, 0, 0, 0, 0, FILNMLEN, true,
- ECOFF_NO_LONG_SECTION_NAMES, 4, FALSE, 2, 32768, - ECOFF_NO_LONG_SECTION_NAMES, 4, false, 2, 32768,
+ ECOFF_NO_LONG_SECTION_NAMES, 4, FALSE, 2, 65279, + ECOFF_NO_LONG_SECTION_NAMES, 4, false, 2, 65279,
mips_ecoff_swap_filehdr_in, mips_ecoff_swap_aouthdr_in, mips_ecoff_swap_filehdr_in, mips_ecoff_swap_aouthdr_in,
mips_ecoff_swap_scnhdr_in, NULL, mips_ecoff_swap_scnhdr_in, NULL,
mips_ecoff_bad_format_hook, _bfd_ecoff_set_arch_mach_hook, mips_ecoff_bad_format_hook, _bfd_ecoff_set_arch_mach_hook,
diff --git binutils-2.28.orig/bfd/coff-rs6000.c binutils-2.28/bfd/coff-rs6000.c diff --git a/bfd/coff-rs6000.c b/bfd/coff-rs6000.c
index 511f0c1..acda7d9 100644 index 45ba9b3cb00..744c61bafb9 100644
--- binutils-2.28.orig/bfd/coff-rs6000.c --- a/bfd/coff-rs6000.c
+++ binutils-2.28/bfd/coff-rs6000.c +++ b/bfd/coff-rs6000.c
@@ -4077,7 +4077,7 @@ static const struct xcoff_backend_data_rec bfd_xcoff_backend_data = @@ -4382,7 +4382,7 @@ static const struct xcoff_backend_data_rec bfd_xcoff_backend_data =
3, /* _bfd_coff_default_section_alignment_power */ 3, /* _bfd_coff_default_section_alignment_power */
FALSE, /* _bfd_coff_force_symnames_in_strings */ false, /* _bfd_coff_force_symnames_in_strings */
2, /* _bfd_coff_debug_string_prefix_length */ 2, /* _bfd_coff_debug_string_prefix_length */
- 32768, /* _bfd_coff_max_nscns */ - 32768, /* _bfd_coff_max_nscns */
+ 65279, /* _bfd_coff_max_nscns */ + 65279, /* _bfd_coff_max_nscns */
coff_swap_filehdr_in, coff_swap_filehdr_in,
coff_swap_aouthdr_in, coff_swap_aouthdr_in,
coff_swap_scnhdr_in, coff_swap_scnhdr_in,
diff --git binutils-2.28.orig/bfd/coff-sh.c binutils-2.28/bfd/coff-sh.c diff --git a/bfd/coff-sh.c b/bfd/coff-sh.c
index dd8090c..5e3605f 100644 index 10d203f5280..ef793612bf7 100644
--- binutils-2.28.orig/bfd/coff-sh.c --- a/bfd/coff-sh.c
+++ binutils-2.28/bfd/coff-sh.c +++ b/bfd/coff-sh.c
@@ -3099,7 +3099,7 @@ static bfd_coff_backend_data bfd_coff_small_swap_table = @@ -3094,7 +3094,7 @@ static bfd_coff_backend_data bfd_coff_small_swap_table =
#else #else
2, 2,
#endif #endif
@ -65,11 +65,11 @@ index dd8090c..5e3605f 100644
coff_swap_filehdr_in, coff_swap_aouthdr_in, coff_swap_scnhdr_in, coff_swap_filehdr_in, coff_swap_aouthdr_in, coff_swap_scnhdr_in,
coff_swap_reloc_in, coff_bad_format_hook, coff_set_arch_mach_hook, coff_swap_reloc_in, coff_bad_format_hook, coff_set_arch_mach_hook,
coff_mkobject_hook, styp_to_sec_flags, coff_set_alignment_hook, coff_mkobject_hook, styp_to_sec_flags, coff_set_alignment_hook,
diff --git binutils-2.28.orig/bfd/coffcode.h binutils-2.28/bfd/coffcode.h diff --git a/bfd/coffcode.h b/bfd/coffcode.h
index a8eba93..98395bc 100644 index f65f3352e46..25384adfde8 100644
--- binutils-2.28.orig/bfd/coffcode.h --- a/bfd/coffcode.h
+++ binutils-2.28/bfd/coffcode.h +++ b/bfd/coffcode.h
@@ -5634,7 +5634,7 @@ static bfd_coff_backend_data bfd_coff_std_swap_table ATTRIBUTE_UNUSED = @@ -5415,7 +5415,7 @@ static bfd_coff_backend_data bfd_coff_std_swap_table ATTRIBUTE_UNUSED =
#else #else
2, 2,
#endif #endif
@ -78,3 +78,5 @@ index a8eba93..98395bc 100644
coff_SWAP_filehdr_in, coff_SWAP_aouthdr_in, coff_SWAP_scnhdr_in, coff_SWAP_filehdr_in, coff_SWAP_aouthdr_in, coff_SWAP_scnhdr_in,
coff_SWAP_reloc_in, coff_bad_format_hook, coff_set_arch_mach_hook, coff_SWAP_reloc_in, coff_bad_format_hook, coff_set_arch_mach_hook,
coff_mkobject_hook, styp_to_sec_flags, coff_set_alignment_hook, coff_mkobject_hook, styp_to_sec_flags, coff_set_alignment_hook,
--
2.32.0

View File

@ -1,8 +1,27 @@
diff -urN binutils-2.27.orig/bfd/bfd-in.h binutils-2.27/bfd/bfd-in.h From 5ee25363627a01704e38cc828e745065982cb3a3 Mon Sep 17 00:00:00 2001
--- binutils-2.27.orig/bfd/bfd-in.h 2016-08-03 09:36:50.000000000 +0200 From: Christoph Reiter <reiter.christoph@gmail.com>
+++ binutils-2.27/bfd/bfd-in.h 2016-09-21 21:13:49.177148600 +0200 Date: Wed, 28 Jul 2021 21:47:18 +0200
@@ -137,7 +137,7 @@ Subject: [PATCH] mingw printf
---
bfd/bfd-in.h | 2 +-
bfd/bfd-in2.h | 2 +-
binutils/dwarf.c | 2 +-
binutils/nm.c | 2 +-
binutils/prdbg.c | 2 +-
binutils/strings.c | 6 +++---
gas/as.h | 4 ++--
gold/configure | 2 +-
gold/configure.ac | 2 +-
include/ansidecl.h | 4 ++--
10 files changed, 14 insertions(+), 14 deletions(-)
diff --git a/bfd/bfd-in.h b/bfd/bfd-in.h
index a4888f9f7f2..85540462b15 100644
--- a/bfd/bfd-in.h
+++ b/bfd/bfd-in.h
@@ -126,7 +126,7 @@ typedef BFD_HOST_U_64_BIT symvalue;
#if BFD_HOST_64BIT_LONG #if BFD_HOST_64BIT_LONG
#define BFD_VMA_FMT "l" #define BFD_VMA_FMT "l"
-#elif defined (__MSVCRT__) -#elif defined (__MSVCRT__)
@ -10,11 +29,12 @@ diff -urN binutils-2.27.orig/bfd/bfd-in.h binutils-2.27/bfd/bfd-in.h
#define BFD_VMA_FMT "I64" #define BFD_VMA_FMT "I64"
#else #else
#define BFD_VMA_FMT "ll" #define BFD_VMA_FMT "ll"
diff -urN binutils-2.27.orig/bfd/bfd-in2.h binutils-2.27/bfd/bfd-in2.h diff --git a/bfd/bfd-in2.h b/bfd/bfd-in2.h
--- binutils-2.27.orig/bfd/bfd-in2.h 2016-08-03 09:36:50.000000000 +0200 index 9a698316980..4a9d597d60e 100644
+++ binutils-2.27/bfd/bfd-in2.h 2016-09-21 21:13:49.185161800 +0200 --- a/bfd/bfd-in2.h
@@ -144,7 +144,7 @@ +++ b/bfd/bfd-in2.h
@@ -133,7 +133,7 @@ typedef BFD_HOST_U_64_BIT symvalue;
#if BFD_HOST_64BIT_LONG #if BFD_HOST_64BIT_LONG
#define BFD_VMA_FMT "l" #define BFD_VMA_FMT "l"
-#elif defined (__MSVCRT__) -#elif defined (__MSVCRT__)
@ -22,22 +42,24 @@ diff -urN binutils-2.27.orig/bfd/bfd-in2.h binutils-2.27/bfd/bfd-in2.h
#define BFD_VMA_FMT "I64" #define BFD_VMA_FMT "I64"
#else #else
#define BFD_VMA_FMT "ll" #define BFD_VMA_FMT "ll"
diff -urN binutils-2.27.orig/binutils/dwarf.c binutils-2.27/binutils/dwarf.c diff --git a/binutils/dwarf.c b/binutils/dwarf.c
--- binutils-2.27.orig/binutils/dwarf.c 2016-08-03 09:36:51.000000000 +0200 index 1e7f4db7b7c..f33de2a649e 100644
+++ binutils-2.27/binutils/dwarf.c 2016-09-21 21:13:49.210178100 +0200 --- a/binutils/dwarf.c
@@ -164,7 +164,7 @@ +++ b/binutils/dwarf.c
@@ -218,7 +218,7 @@ get_encoded_value (unsigned char **pdata,
} }
#if defined HAVE_LONG_LONG && SIZEOF_LONG_LONG > SIZEOF_LONG #if SIZEOF_LONG_LONG > SIZEOF_LONG
-# ifndef __MINGW32__ -# ifndef __MINGW32__
+#if !defined(__MSVCRT__) || defined(__USE_MINGW_ANSI_STDIO) +# ifndef __MINGW32__ || defined(__USE_MINGW_ANSI_STDIO)
# define DWARF_VMA_FMT "ll" # define DWARF_VMA_FMT "ll"
# define DWARF_VMA_FMT_LONG "%16.16llx" # define DWARF_VMA_FMT_LONG "%16.16llx"
# else # else
diff -urN binutils-2.27.orig/binutils/nm.c binutils-2.27/binutils/nm.c diff --git a/binutils/nm.c b/binutils/nm.c
--- binutils-2.27.orig/binutils/nm.c 2016-08-03 09:36:51.000000000 +0200 index 82ccec6801c..4925ea580dc 100644
+++ binutils-2.27/binutils/nm.c 2016-09-21 21:13:49.221191400 +0200 --- a/binutils/nm.c
@@ -1243,7 +1243,7 @@ +++ b/binutils/nm.c
@@ -1312,7 +1312,7 @@ get_print_format (void)
#if BFD_HOST_64BIT_LONG #if BFD_HOST_64BIT_LONG
; ;
#elif BFD_HOST_64BIT_LONG_LONG #elif BFD_HOST_64BIT_LONG_LONG
@ -46,10 +68,11 @@ diff -urN binutils-2.27.orig/binutils/nm.c binutils-2.27/binutils/nm.c
length = "ll"; length = "ll";
#else #else
length = "I64"; length = "I64";
diff -urN binutils-2.27.orig/binutils/prdbg.c binutils-2.27/binutils/prdbg.c diff --git a/binutils/prdbg.c b/binutils/prdbg.c
--- binutils-2.27.orig/binutils/prdbg.c 2016-08-03 09:36:51.000000000 +0200 index 6c14dcac9a8..bedfffa022e 100644
+++ binutils-2.27/binutils/prdbg.c 2016-09-21 21:13:49.229194100 +0200 --- a/binutils/prdbg.c
@@ -502,7 +502,7 @@ +++ b/binutils/prdbg.c
@@ -497,7 +497,7 @@ print_vma (bfd_vma vma, char *buf, bool unsignedp, bool hexp)
#if BFD_HOST_64BIT_LONG_LONG #if BFD_HOST_64BIT_LONG_LONG
else if (sizeof (vma) <= sizeof (unsigned long long)) else if (sizeof (vma) <= sizeof (unsigned long long))
{ {
@ -58,62 +81,43 @@ diff -urN binutils-2.27.orig/binutils/prdbg.c binutils-2.27/binutils/prdbg.c
if (hexp) if (hexp)
sprintf (buf, "0x%llx", (unsigned long long) vma); sprintf (buf, "0x%llx", (unsigned long long) vma);
else if (unsignedp) else if (unsignedp)
diff -urN binutils-2.27.orig/binutils/readelf.c binutils-2.27/binutils/readelf.c diff --git a/binutils/strings.c b/binutils/strings.c
--- binutils-2.35/binutils/readelf.c.orig 2020-07-24 11:12:19.000000000 +0200 index 44a8e1da644..4010829dc49 100644
+++ binutils-2.35/binutils/readelf.c 2020-08-26 22:30:15.008358800 +0200 --- a/binutils/strings.c
@@ -1274,7 +1274,7 @@ +++ b/binutils/strings.c
: "%12.12lx %12.12lx ", @@ -610,7 +610,7 @@ print_strings (const char *filename, FILE *stream, file_ptr address,
offset, inf); case 8:
#elif BFD_HOST_64BIT_LONG_LONG
-#ifndef __MSVCRT__
+#if !defined(__MSVCRT__) || defined(__USE_MINGW_ANSI_STDIO)
printf (do_wide
? "%16.16llx %16.16llx "
: "%12.12llx %12.12llx ",
@@ -13927,7 +13927,7 @@
}
else
{
-#ifndef __MSVCRT__
+#if !defined(__MSVCRT__) || defined(__USE_MINGW_ANSI_STDIO)
/* PR 11128: Use two separate invocations in order to work
around bugs in the Solaris 8 implementation of printf. */
printf (" [%6tx] ", data - start);
diff -urN binutils-2.27.orig/binutils/strings.c binutils-2.27/binutils/strings.c
--- binutils-2.27.orig/binutils/strings.c 2016-08-03 09:36:51.000000000 +0200
+++ binutils-2.27/binutils/strings.c 2016-09-21 21:13:49.251195600 +0200
@@ -613,7 +613,7 @@
#ifdef HAVE_LONG_LONG
if (sizeof (start) > sizeof (long)) if (sizeof (start) > sizeof (long))
{ {
-# ifndef __MSVCRT__ -#ifndef __MSVCRT__
+# if !defined(__MSVCRT__) || defined(__USE_MINGW_ANSI_STDIO) +#if !defined(__MSVCRT__) || defined(__USE_MINGW_ANSI_STDIO)
printf ("%7llo ", (unsigned long long) start); printf ("%7llo ", (unsigned long long) start);
# else #else
printf ("%7I64o ", (unsigned long long) start); printf ("%7I64o ", (unsigned long long) start);
@@ -632,7 +632,7 @@ @@ -623,7 +623,7 @@ print_strings (const char *filename, FILE *stream, file_ptr address,
#ifdef HAVE_LONG_LONG case 10:
if (sizeof (start) > sizeof (long)) if (sizeof (start) > sizeof (long))
{ {
-# ifndef __MSVCRT__ -#ifndef __MSVCRT__
+#if !defined(__MSVCRT__) || defined(__USE_MINGW_ANSI_STDIO) +#if !defined(__MSVCRT__) || defined(__USE_MINGW_ANSI_STDIO)
printf ("%7llu ", (unsigned long long) start); printf ("%7llu ", (unsigned long long) start);
# else #else
printf ("%7I64d ", (unsigned long long) start); printf ("%7I64d ", (unsigned long long) start);
@@ -651,7 +651,7 @@ @@ -636,7 +636,7 @@ print_strings (const char *filename, FILE *stream, file_ptr address,
#ifdef HAVE_LONG_LONG case 16:
if (sizeof (start) > sizeof (long)) if (sizeof (start) > sizeof (long))
{ {
-# ifndef __MSVCRT__ -#ifndef __MSVCRT__
+# if !defined(__MSVCRT__) || defined(__USE_MINGW_ANSI_STDIO) +#if !defined(__MSVCRT__) || defined(__USE_MINGW_ANSI_STDIO)
printf ("%7llx ", (unsigned long long) start); printf ("%7llx ", (unsigned long long) start);
# else #else
printf ("%7I64x ", (unsigned long long) start); printf ("%7I64x ", (unsigned long long) start);
diff -urN binutils-2.27.orig/gas/as.h binutils-2.27/gas/as.h diff --git a/gas/as.h b/gas/as.h
--- binutils-2.27.orig/gas/as.h 2016-08-03 09:36:51.000000000 +0200 index 14a768f8889..b1f056f115a 100644
+++ binutils-2.27/gas/as.h 2016-09-21 21:25:33.955958500 +0200 --- a/gas/as.h
@@ -438,10 +438,10 @@ +++ b/gas/as.h
@@ -405,10 +405,10 @@ typedef struct _pseudo_type pseudo_typeS;
#define PRINTF_LIKE(FCN) \ #define PRINTF_LIKE(FCN) \
void FCN (const char *format, ...) \ void FCN (const char *format, ...) \
- __attribute__ ((__format__ (__printf__, 1, 2))) - __attribute__ ((__format__ (__printf__, 1, 2)))
@ -122,49 +126,40 @@ diff -urN binutils-2.27.orig/gas/as.h binutils-2.27/gas/as.h
void FCN (const char *file, unsigned int line, const char *format, ...) \ void FCN (const char *file, unsigned int line, const char *format, ...) \
- __attribute__ ((__format__ (__printf__, 3, 4))) - __attribute__ ((__format__ (__printf__, 3, 4)))
+ __attribute__ ((__format__ (gnu_printf, 3, 4))) + __attribute__ ((__format__ (gnu_printf, 3, 4)))
#else /* __GNUC__ < 2 || defined(VMS) */ #else /* __GNUC__ < 2 || defined(VMS) */
diff -urN binutils-2.27.orig/gas/read.c binutils-2.27/gas/read.c diff --git a/gold/configure b/gold/configure
--- binutils-2.27.orig/gas/read.c 2016-08-03 09:36:51.000000000 +0200 index b9f062b68eb..fde982191c5 100755
+++ binutils-2.27/gas/read.c 2016-09-21 21:13:49.262196200 +0200 --- a/gold/configure
@@ -4415,7 +4415,7 @@ +++ b/gold/configure
{ @@ -10153,7 +10153,7 @@ else
/* Leading bits contain both 0s & 1s. */
#if defined (BFD64) && BFD_HOST_64BIT_LONG_LONG
-#ifndef __MSVCRT__
+#if !defined(__MSVCRT__) || defined(__USE_MINGW_ANSI_STDIO)
as_warn (_("value 0x%llx truncated to 0x%llx"),
(unsigned long long) get, (unsigned long long) use);
#else
diff -urN binutils-2.27.orig/gold/configure binutils-2.27/gold/configure
--- binutils-2.27.orig/gold/configure 2016-08-03 09:36:53.000000000 +0200
+++ binutils-2.27/gold/configure 2016-09-21 21:13:49.306197900 +0200
@@ -7558,7 +7558,7 @@
/* end confdefs.h. */ /* end confdefs.h. */
template<typename T> extern void foo(const char*, ...) template<typename T> extern void foo(const char*, ...)
- __attribute__ ((__format__ (__printf__, 1, 2))); - __attribute__ ((__format__ (__printf__, 1, 2)));
+ __attribute__ ((__format__ (gnu_printf, 1, 2))); + __attribute__ ((__format__ (gnu_printf, 1, 2)));
template<typename T> void foo(const char* format, ...) {} template<typename T> void foo(const char* format, ...) {}
void bar() { foo<int>("%s\n", "foo"); } void bar() { foo<int>("%s\n", "foo"); }
diff -urN binutils-2.27.orig/gold/configure.ac binutils-2.27/gold/configure.ac diff --git a/gold/configure.ac b/gold/configure.ac
--- binutils-2.27.orig/gold/configure.ac 2016-08-03 09:36:53.000000000 +0200 index 1716a779416..cae29866f38 100644
+++ binutils-2.27/gold/configure.ac 2016-09-21 21:13:49.317584300 +0200 --- a/gold/configure.ac
@@ -635,7 +635,7 @@ +++ b/gold/configure.ac
@@ -678,7 +678,7 @@ AC_CACHE_CHECK([whether we can use attributes with template functions],
[gold_cv_template_attribute], [gold_cv_template_attribute],
[AC_COMPILE_IFELSE([ [AC_COMPILE_IFELSE([AC_LANG_SOURCE([
template<typename T> extern void foo(const char*, ...) template<typename T> extern void foo(const char*, ...)
- __attribute__ ((__format__ (__printf__, 1, 2))); - __attribute__ ((__format__ (__printf__, 1, 2)));
+ __attribute__ ((__format__ (gnu_printf, 1, 2))); + __attribute__ ((__format__ (gnu_printf, 1, 2)));
template<typename T> void foo(const char* format, ...) {} template<typename T> void foo(const char* format, ...) {}
void bar() { foo<int>("%s\n", "foo"); } void bar() { foo<int>("%s\n", "foo"); }
], [gold_cv_template_attribute=yes], [gold_cv_template_attribute=no])]) ])], [gold_cv_template_attribute=yes], [gold_cv_template_attribute=no])])
diff -urN binutils-2.27.orig/include/ansidecl.h binutils-2.27/include/ansidecl.h diff --git a/include/ansidecl.h b/include/ansidecl.h
--- binutils-2.27.orig/include/ansidecl.h 2016-08-03 09:36:53.000000000 +0200 index 0515228f325..7c2b9f18306 100644
+++ binutils-2.27/include/ansidecl.h 2016-09-21 21:13:49.327082000 +0200 --- a/include/ansidecl.h
@@ -195,7 +195,7 @@ +++ b/include/ansidecl.h
@@ -195,7 +195,7 @@ So instead we use the macro below and test it against specific values. */
before GCC 3.3, but as of 3.3 we need to add the `nonnull' before GCC 3.3, but as of 3.3 we need to add the `nonnull'
attribute to retain this behavior. */ attribute to retain this behavior. */
#ifndef ATTRIBUTE_PRINTF #ifndef ATTRIBUTE_PRINTF
@ -173,7 +168,7 @@ diff -urN binutils-2.27.orig/include/ansidecl.h binutils-2.27/include/ansidecl.h
#define ATTRIBUTE_PRINTF_1 ATTRIBUTE_PRINTF(1, 2) #define ATTRIBUTE_PRINTF_1 ATTRIBUTE_PRINTF(1, 2)
#define ATTRIBUTE_PRINTF_2 ATTRIBUTE_PRINTF(2, 3) #define ATTRIBUTE_PRINTF_2 ATTRIBUTE_PRINTF(2, 3)
#define ATTRIBUTE_PRINTF_3 ATTRIBUTE_PRINTF(3, 4) #define ATTRIBUTE_PRINTF_3 ATTRIBUTE_PRINTF(3, 4)
@@ -223,7 +223,7 @@ @@ -223,7 +223,7 @@ So instead we use the macro below and test it against specific values. */
NULL format specifier was allowed as of gcc 3.3. */ NULL format specifier was allowed as of gcc 3.3. */
#ifndef ATTRIBUTE_NULL_PRINTF #ifndef ATTRIBUTE_NULL_PRINTF
# if (GCC_VERSION >= 3003) # if (GCC_VERSION >= 3003)
@ -182,3 +177,5 @@ diff -urN binutils-2.27.orig/include/ansidecl.h binutils-2.27/include/ansidecl.h
# else # else
# define ATTRIBUTE_NULL_PRINTF(m, n) # define ATTRIBUTE_NULL_PRINTF(m, n)
# endif /* GNUC >= 3.3 */ # endif /* GNUC >= 3.3 */
--
2.32.0

View File

@ -4,7 +4,7 @@
_realname=binutils _realname=binutils
_mingw_suff=mingw-w64-cross _mingw_suff=mingw-w64-cross
pkgname=("${_mingw_suff}-${_realname}") pkgname=("${_mingw_suff}-${_realname}")
pkgver=2.35.1 pkgver=2.37
pkgrel=1 pkgrel=1
pkgdesc="A set of programs to assemble and manipulate binary and object files" pkgdesc="A set of programs to assemble and manipulate binary and object files"
arch=('i686' 'x86_64') arch=('i686' 'x86_64')
@ -20,17 +20,17 @@ source=(https://ftp.gnu.org/gnu/binutils/binutils-${pkgver}.tar.xz{,.sig}
0002-check-for-unusual-file-harder.patch 0002-check-for-unusual-file-harder.patch
0010-bfd-Increase-_bfd_coff_max_nscns-to-65279.patch 0010-bfd-Increase-_bfd_coff_max_nscns-to-65279.patch
0020-binutils_2.31_mkdtemp_impl.patch 0020-binutils_2.31_mkdtemp_impl.patch
0100-binutils-2.30-msys2.patch 0100-binutils-2.37-msys2.patch
0110-binutils-mingw-gnu-print.patch 0110-binutils-mingw-gnu-print.patch
0120-windres-handle-spaces.patch) 0120-windres-handle-spaces.patch)
sha256sums=('3ced91db9bf01182b7e420eab68039f2083aed0a214c0424e257eae3ddee8607' sha256sums=('820d9724f020a3e69cb337893a0b63c2db161dadcb0e06fc11dc29eb1e84a32c'
'SKIP' 'SKIP'
'93296b909e1a4f9d8a4bbe2437aafa17ca565ef6642a9812b0360c05be228c9d' '93296b909e1a4f9d8a4bbe2437aafa17ca565ef6642a9812b0360c05be228c9d'
'2c99345fc575c3a060d6677537f636c6c4154fac0fde508070f3b6296c1060d4' '2c99345fc575c3a060d6677537f636c6c4154fac0fde508070f3b6296c1060d4'
'604e76e0f702ced493ee22aa3c1768b4776b2008a7d70ae0dd35fe5be3522141' '4e8ac055df61b1b5d6ae29dc87e1154737c2e87c7b244b44866702cabf1a5d18'
'34ba6c001ff7f95ae1da0619c73130112b76d0d2a31bb8a00602eb22f1f84cb8' '34ba6c001ff7f95ae1da0619c73130112b76d0d2a31bb8a00602eb22f1f84cb8'
'21a5f835d8e9c1d7daba1ffb8369fce8e38be05949997c4039b5cb10d8589082' '4c5b251beb036814992bc1b6538b5ff49259e073b7cc982e036c76050a866a51'
'76658ef1bb8c5fc3fe6c26e2b5dd9ee0f1d12661988c0c65562b0a3e2d32ae1f' '15fd46de15db03aacff360d15be1ddf2d81092db78aae1eb1e60f6756958745d'
'86ae90d997e986a54aaebb5251f3a71800b0c5c3f5b57b9094a42995e9f5c478') '86ae90d997e986a54aaebb5251f3a71800b0c5c3f5b57b9094a42995e9f5c478')
validpgpkeys=('EAF1C276A747E9ED86210CBAC3126D3B4AE55E93' validpgpkeys=('EAF1C276A747E9ED86210CBAC3126D3B4AE55E93'
'3A24BC1E8FB409FA9F14371813FCEF89DD9E3C4F') '3A24BC1E8FB409FA9F14371813FCEF89DD9E3C4F')
@ -45,7 +45,7 @@ prepare() {
patch -p1 -i "${srcdir}"/0010-bfd-Increase-_bfd_coff_max_nscns-to-65279.patch patch -p1 -i "${srcdir}"/0010-bfd-Increase-_bfd_coff_max_nscns-to-65279.patch
patch -p1 -i "${srcdir}"/0020-binutils_2.31_mkdtemp_impl.patch patch -p1 -i "${srcdir}"/0020-binutils_2.31_mkdtemp_impl.patch
patch -p1 -i "${srcdir}"/0100-binutils-2.30-msys2.patch patch -p1 -i "${srcdir}"/0100-binutils-2.37-msys2.patch
patch -p1 -i "${srcdir}"/0110-binutils-mingw-gnu-print.patch patch -p1 -i "${srcdir}"/0110-binutils-mingw-gnu-print.patch
patch -p1 -i "${srcdir}"/0120-windres-handle-spaces.patch patch -p1 -i "${srcdir}"/0120-windres-handle-spaces.patch