From: Ian Lance Taylor Date: Fri, 25 Feb 1994 21:16:56 +0000 (+0000) Subject: * config/obj-coffbfd.c (fill_section): Correct test for whether to X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=3919ffeb06afa58b22d9280b4a64bd685731433c;p=binutils-gdb.git * config/obj-coffbfd.c (fill_section): Correct test for whether to fill a section (from Minh Tran-Le ). --- diff --git a/gas/ChangeLog b/gas/ChangeLog index c6d4e2880f1..3ac5ef3389f 100644 --- a/gas/ChangeLog +++ b/gas/ChangeLog @@ -1,5 +1,12 @@ +Fri Feb 25 13:15:31 1994 Ian Lance Taylor (ian@cygnus.com) + + * config/obj-coffbfd.c (fill_section): Correct test for whether to + fill a section (from Minh Tran-Le ). + Thu Feb 24 11:30:26 1994 Ken Raeburn (raeburn@cujo.cygnus.com) + * configure.in: Don't require version number for i386-*-mach. + * read.c (potable): Added ".this_GCC_requires_the_GNU_assembler", which is ignored by gas, but will cause other assemblers to choke. Intended for use by gcc ports that require gas instead of native diff --git a/gas/config/obj-coffbfd.c b/gas/config/obj-coffbfd.c index c659feba94e..0e6258794da 100644 --- a/gas/config/obj-coffbfd.c +++ b/gas/config/obj-coffbfd.c @@ -563,7 +563,7 @@ DEFUN (fill_section, (abfd, h, file_cursor), unsigned int off = frag->fr_fix; for (count = frag->fr_offset; count; count--) { - if (fill_size + frag->fr_address + off < s->s_size) + if (fill_size + frag->fr_address + off <= s->s_size) { memcpy (buffer + frag->fr_address + off, frag->fr_literal + frag->fr_fix,