more section size fallout
Alan Modra
amodra@bigpond.net.au
Tue Jun 29 13:50:00 GMT 2004
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
More information about the Binutils
mailing list