$OpenBSD: patch-bfd_coffswap_h,v 1.3 2010/06/27 20:58:10 ckuethe Exp $ --- bfd/coffswap.h.orig Sat Jun 26 11:23:52 2010 +++ bfd/coffswap.h Sat Jun 26 11:31:17 2010 @@ -383,7 +383,11 @@ coff_swap_aux_in (bfd *abfd, void * ext1, int type, int in_class, - int indx, + int indx +#if defined(AVR) && __GNUC__ + __attribute__((unused)) +#endif + , int numaux, void * in1) { @@ -409,9 +413,13 @@ coff_swap_aux_in (bfd *abfd, #else if (numaux > 1) { +#if defined(AVR) + memcpy (in->x_file.x_fname, ext->x_file.x_fname, sizeof (AUXENT)); +#else if (indx == 0) memcpy (in->x_file.x_fname, ext->x_file.x_fname, numaux * sizeof (AUXENT)); +#endif } else memcpy (in->x_file.x_fname, ext->x_file.x_fname, FILNMLEN);