This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
more section size fallout
- From: Alan Modra <amodra at bigpond dot net dot au>
- To: binutils at sources dot redhat dot com
- Date: Tue, 29 Jun 2004 23:20:36 +0930
- Subject: 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