[RFA] Fix bug in AIX linker (coffcode.h)

Joel Brobecker brobecker@adacore.com
Fri Oct 28 02:00:00 GMT 2005


This is a followup for Eric on 

        http://sourceware.org/ml/binutils/2005-04/msg00535.html

where a problem and its solution were clearly identified but a patch
never formally submitted. This fixes the omission.

2005-10-27  Joel Brobecker  <brobecker@adacore.com>

        From Eric Botcazou  <botcazou@adacore.com>
        * coffcode.h (coff_compute_section_file_positions): Fix small
        error in preprocessor directives.

Tested on AIX 5.1 using the various binutils testsuites.

OK to apply?
-- 
Joel
-------------- next part --------------
Index: coffcode.h
===================================================================
RCS file: /cvs/src/src/bfd/coffcode.h,v
retrieving revision 1.101
diff -u -p -r1.101 coffcode.h
--- coffcode.h	19 Dec 2003 10:01:59 -0000	1.101
+++ coffcode.h	20 Apr 2005 12:04:22 -0000
@@ -3208,11 +3208,11 @@ coff_compute_section_file_positions (abf
 		}
 	    }
 	  else
-#else
+#endif
 	    {
 	      sofar = BFD_ALIGN (sofar, 1 << current->alignment_power);
 	    }
-#endif
+
 	  if (previous != (asection *) NULL)
 	    previous->_raw_size += sofar - old_sofar;
 	}


More information about the Binutils mailing list