patch, xcoff64 C_FILE auxent

Tom Rix trix@redhat.com
Fri Apr 19 23:44:00 GMT 2002


This patch fixes a problem with linking xcoff64 with a cross ld.

Tom

--
Tom Rix
GCC Engineer
trix@redhat.com


-------------- next part --------------
2002-04-20  Tom Rix  <trix@redhat.com>

	* coff64-rs6000.c (_bfd_xcoff64_swap_aux_in): Fix C_FILE auxent.

Index: bfd/coff64-rs6000.c
===================================================================
RCS file: /cvs/src/src/bfd/coff64-rs6000.c,v
retrieving revision 1.23
diff -d -u -p -r1.23 coff64-rs6000.c
--- bfd/coff64-rs6000.c	4 Apr 2002 19:53:35 -0000	1.23
+++ bfd/coff64-rs6000.c	20 Apr 2002 06:33:17 -0000
@@ -293,7 +293,7 @@ _bfd_xcoff64_swap_aux_in (abfd, ext1, ty
   switch (class)
     {
     case C_FILE:
-      if (ext->x_file.x_n.x_zeroes == 0)
+      if (ext->x_file.x_n.x_zeroes[0] == 0)
 	{
 	  in->x_file.x_n.x_zeroes = 0;
 	  in->x_file.x_n.x_offset = H_GET_32 (abfd, ext->x_file.x_n.x_offset);



More information about the Binutils mailing list