Attached to this message is a trivial patch that makes the binutils-avr package build correctly against GCC 11.

Best,

Rafael Laboissière
--- binutils-avr-2.26.20160125+Atmel3.6.2.orig/binutils/bfd/plugin.c
+++ binutils-avr-2.26.20160125+Atmel3.6.2/binutils/bfd/plugin.c
@@ -338,7 +338,7 @@ load_plugin (bfd *abfd)
     {
       char *full_name;
       struct stat s;
-      int valid_plugin;
+      int valid_plugin = 0;
 
       full_name = concat (p, "/", ent->d_name, NULL);
       if (stat(full_name, &s) == 0 && S_ISREG (s.st_mode))
--- binutils-avr-2.26.20160125+Atmel3.6.2.orig/binutils/bfd/elf-bfd.h
+++ binutils-avr-2.26.20160125+Atmel3.6.2/binutils/bfd/elf-bfd.h
@@ -1751,7 +1751,7 @@ struct elf_obj_tdata
   struct sdt_note *sdt_note_head;
 
   Elf_Internal_Shdr **group_sect_ptr;
-  int num_group;
+  unsigned int num_group;
 
   unsigned int symtab_section, dynsymtab_section;
   unsigned int dynversym_section, dynverdef_section, dynverref_section;

Reply via email to