From: Ian Lance Taylor Date: Mon, 13 Sep 1999 23:42:43 +0000 (+0000) Subject: 1999-09-13 Donn Terry X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=7920749071fe486d74070f3e87aff1b4a1fbf6c6;p=binutils-gdb.git 1999-09-13 Donn Terry * coffcode.h (coff_write_object_contents): Don't check reloc_count when determining whether to set F_RELFLG. --- diff --git a/bfd/ChangeLog b/bfd/ChangeLog index 557562bee95..5c1a366d265 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,3 +1,8 @@ +1999-09-13 Donn Terry + + * coffcode.h (coff_write_object_contents): Don't check reloc_count + when determining whether to set F_RELFLG. + 1999-09-13 Philip Blundell * elf32-arm.h (elf32_arm_final_link_relocate): Don't range-check diff --git a/bfd/coffcode.h b/bfd/coffcode.h index f48886e34f2..1c52be596c4 100644 --- a/bfd/coffcode.h +++ b/bfd/coffcode.h @@ -3072,8 +3072,11 @@ coff_write_object_contents (abfd) section.s_lnnoptr = current->line_filepos; section.s_nreloc = current->reloc_count; section.s_nlnno = current->lineno_count; +#ifndef COFF_IMAGE_WITH_PE + /* In PEI, relocs come in the .reloc section. */ if (current->reloc_count != 0) hasrelocs = true; +#endif if (current->lineno_count != 0) haslinno = true; if ((current->flags & SEC_DEBUGGING) != 0