diff options
Diffstat (limited to 'pkg/binutils')
| -rw-r--r-- | pkg/binutils/patch/0005-Adjust-style-to-prevent-gcc-warning.patch | 29 | ||||
| -rw-r--r-- | pkg/binutils/ver | 2 |
2 files changed, 30 insertions, 1 deletions
diff --git a/pkg/binutils/patch/0005-Adjust-style-to-prevent-gcc-warning.patch b/pkg/binutils/patch/0005-Adjust-style-to-prevent-gcc-warning.patch new file mode 100644 index 00000000..16d0c281 --- /dev/null +++ b/pkg/binutils/patch/0005-Adjust-style-to-prevent-gcc-warning.patch @@ -0,0 +1,29 @@ +From b0c9a9929385469f431739a366e8ac9d61d0ac7b 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 + +This is still implementation-defined, but matches the style used +elsewhere in this file and prevents a conversion overflow warning. +--- + bfd/elf.c | 3 ++- + 1 file changed, 2 insertions(+), 1 deletion(-) + +diff --git a/bfd/elf.c b/bfd/elf.c +index a8d98a60f4..a5872a57a1 100644 +--- a/bfd/elf.c ++++ b/bfd/elf.c +@@ -748,8 +748,9 @@ setup_group (bfd *abfd, Elf_Internal_Shdr *hdr, asection *newsect) + /* If all groups are invalid then fail. */ + if (num_group == 0) + { ++ num_group = (unsigned) -1; + elf_tdata (abfd)->group_sect_ptr = NULL; +- elf_tdata (abfd)->num_group = num_group = -1; ++ elf_tdata (abfd)->num_group = num_group; + _bfd_error_handler + (_("%pB: no valid group sections found"), abfd); + bfd_set_error (bfd_error_bad_value); +-- +2.27.0 + diff --git a/pkg/binutils/ver b/pkg/binutils/ver index 262c9146..86244fc2 100644 --- a/pkg/binutils/ver +++ b/pkg/binutils/ver @@ -1 +1 @@ -2.34 r1 +2.34 r2 |
