| From 1316395a096fd327efe88c171a08ba077f6f02df Mon Sep 17 00:00:00 2001 |
| From: Ray Donnelly <mingw.android@gmail.com> |
| Date: Mon, 23 Nov 2015 22:42:53 +0000 |
| Subject: [PATCH 5/5] bfd: Increase _bfd_coff_max_nscns to 65279 |
| |
| .. from 32768. This is the value that llvm uses. There's no |
| indication in the PECOFF specs that 32768 is the limit. |
| --- |
| bfd/coff-alpha.c | 2 +- |
| bfd/coff-mips.c | 2 +- |
| bfd/coff-rs6000.c | 2 +- |
| bfd/coff-sh.c | 2 +- |
| bfd/coffcode.h | 2 +- |
| 5 files changed, 5 insertions(+), 5 deletions(-) |
| |
| diff --git binutils-2.28.orig/bfd/coff-alpha.c binutils-2.28/bfd/coff-alpha.c |
| index 9ce1975..df65b5f 100644 |
| --- binutils-2.28.orig/bfd/coff-alpha.c |
| +++ binutils-2.28/bfd/coff-alpha.c |
| @@ -2236,7 +2236,7 @@ static const struct ecoff_backend_data alpha_ecoff_backend_data = |
| alpha_ecoff_swap_filehdr_out, alpha_ecoff_swap_aouthdr_out, |
| alpha_ecoff_swap_scnhdr_out, |
| 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, 65279, |
| alpha_ecoff_swap_filehdr_in, alpha_ecoff_swap_aouthdr_in, |
| alpha_ecoff_swap_scnhdr_in, NULL, |
| 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 |
| index f872ebe..d11fddd 100644 |
| --- binutils-2.28.orig/bfd/coff-mips.c |
| +++ binutils-2.28/bfd/coff-mips.c |
| @@ -1254,7 +1254,7 @@ static const struct ecoff_backend_data mips_ecoff_backend_data = |
| mips_ecoff_swap_filehdr_out, mips_ecoff_swap_aouthdr_out, |
| mips_ecoff_swap_scnhdr_out, |
| 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, 65279, |
| mips_ecoff_swap_filehdr_in, mips_ecoff_swap_aouthdr_in, |
| mips_ecoff_swap_scnhdr_in, NULL, |
| 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 |
| index 511f0c1..acda7d9 100644 |
| --- binutils-2.28.orig/bfd/coff-rs6000.c |
| +++ binutils-2.28/bfd/coff-rs6000.c |
| @@ -4077,7 +4077,7 @@ static const struct xcoff_backend_data_rec bfd_xcoff_backend_data = |
| 3, /* _bfd_coff_default_section_alignment_power */ |
| FALSE, /* _bfd_coff_force_symnames_in_strings */ |
| 2, /* _bfd_coff_debug_string_prefix_length */ |
| - 32768, /* _bfd_coff_max_nscns */ |
| + 65279, /* _bfd_coff_max_nscns */ |
| coff_swap_filehdr_in, |
| coff_swap_aouthdr_in, |
| coff_swap_scnhdr_in, |
| diff --git binutils-2.28.orig/bfd/coff-sh.c binutils-2.28/bfd/coff-sh.c |
| index dd8090c..5e3605f 100644 |
| --- binutils-2.28.orig/bfd/coff-sh.c |
| +++ binutils-2.28/bfd/coff-sh.c |
| @@ -3099,7 +3099,7 @@ static bfd_coff_backend_data bfd_coff_small_swap_table = |
| #else |
| 2, |
| #endif |
| - 32768, |
| + 65279, |
| 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_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 |
| index a8eba93..98395bc 100644 |
| --- binutils-2.28.orig/bfd/coffcode.h |
| +++ binutils-2.28/bfd/coffcode.h |
| @@ -5634,7 +5634,7 @@ static bfd_coff_backend_data bfd_coff_std_swap_table ATTRIBUTE_UNUSED = |
| #else |
| 2, |
| #endif |
| - 32768, |
| + 65279, |
| 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_mkobject_hook, styp_to_sec_flags, coff_set_alignment_hook, |