5773c09eb1
a whole bunch of new devices.
31 lines
785 B
Plaintext
31 lines
785 B
Plaintext
$OpenBSD: patch-bfd_coffswap_h,v 1.2 2009/12/09 16:55:51 ckuethe Exp $
|
|
--- bfd/coffswap.h.orig Tue Jul 3 07:26:40 2007
|
|
+++ bfd/coffswap.h Sun Dec 6 21:48:53 2009
|
|
@@ -383,7 +383,11 @@ coff_swap_aux_in (bfd *abfd,
|
|
void * ext1,
|
|
int type,
|
|
int 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);
|