From 02d3dc253fadb7ae544daec3d1f3eb6f68dd6a9f Mon Sep 17 00:00:00 2001 From: Palash Gandhi Date: Fri, 6 Dec 2024 15:07:22 -0800 Subject: [PATCH] fix build error --- bfd/elf.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/bfd/elf.c b/bfd/elf.c index 952e4bfe11b..272ede6172c 100644 --- a/bfd/elf.c +++ b/bfd/elf.c @@ -35,7 +35,7 @@ SECTION /* For sparc64-cross-sparc32. */ #define _SYSCALL32 #include "sysdep.h" -#include +#include "limits.h" #include "bfd.h" #include "bfdlink.h" #include "libbfd.h" @@ -595,7 +595,8 @@ group_signature (bfd *abfd, Elf_Internal_Shdr *ghdr) static bfd_boolean setup_group (bfd *abfd, Elf_Internal_Shdr *hdr, asection *newsect) { - unsigned int num_group = elf_tdata (abfd)->num_group; + unsigned int num_group = UINT_MAX; + elf_tdata (abfd)->num_group = num_group; /* If num_group is zero, read in all SHT_GROUP sections. The count is set to -1 if there are no SHT_GROUP sections. */