* config/obj-coffbfd.c (fill_section): Correct test for whether to

fill a section (from Minh Tran-Le <TRANLE@intellicorp.com>).
This commit is contained in:
Ian Lance Taylor
1994-02-25 21:16:56 +00:00
parent 5e80812667
commit 3919ffeb06
2 changed files with 8 additions and 1 deletions

View File

@ -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 <TRANLE@intellicorp.com>).
Thu Feb 24 11:30:26 1994 Ken Raeburn (raeburn@cujo.cygnus.com) 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", * read.c (potable): Added ".this_GCC_requires_the_GNU_assembler",
which is ignored by gas, but will cause other assemblers to choke. which is ignored by gas, but will cause other assemblers to choke.
Intended for use by gcc ports that require gas instead of native Intended for use by gcc ports that require gas instead of native

View File

@ -563,7 +563,7 @@ DEFUN (fill_section, (abfd, h, file_cursor),
unsigned int off = frag->fr_fix; unsigned int off = frag->fr_fix;
for (count = frag->fr_offset; count; count--) 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, memcpy (buffer + frag->fr_address + off,
frag->fr_literal + frag->fr_fix, frag->fr_literal + frag->fr_fix,