This is the mail archive of the binutils@sources.redhat.com mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

more section size fallout


Fixes coff targets that relax sections.  The coff-h8300 testsuite
alerted me to this one.

	* reloc16.c (bfd_coff_reloc16_relax_section): Set rawsize.

Index: bfd/reloc16.c
===================================================================
RCS file: /cvs/src/src/bfd/reloc16.c,v
retrieving revision 1.12
diff -u -p -r1.12 reloc16.c
--- bfd/reloc16.c	24 Jun 2004 04:46:26 -0000	1.12
+++ bfd/reloc16.c	29 Jun 2004 12:51:37 -0000
@@ -230,6 +230,7 @@ bfd_coff_reloc16_relax_section (abfd, in
       free ((char *) shrinks);
     }
 
+  input_section->rawsize = input_section->size;
   input_section->size -= shrink;
   free ((char *) reloc_vector);
   return TRUE;

-- 
Alan Modra
IBM OzLabs - Linux Technology Centre


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]