aboutsummaryrefslogtreecommitdiff
path: root/bfd/coffcode.h
diff options
context:
space:
mode:
authorIan Lance Taylor <ian@airs.com>1999-09-13 23:42:43 +0000
committerIan Lance Taylor <ian@airs.com>1999-09-13 23:42:43 +0000
commit7920749071fe486d74070f3e87aff1b4a1fbf6c6 (patch)
tree216e52df4d56092494da050773f824a6f97e479c /bfd/coffcode.h
parentcff3e48be70e018476521d0f62705c29f4112771 (diff)
downloadgdb-7920749071fe486d74070f3e87aff1b4a1fbf6c6.zip
gdb-7920749071fe486d74070f3e87aff1b4a1fbf6c6.tar.gz
gdb-7920749071fe486d74070f3e87aff1b4a1fbf6c6.tar.bz2
1999-09-13 Donn Terry <donn@interix.com>
* coffcode.h (coff_write_object_contents): Don't check reloc_count when determining whether to set F_RELFLG.
Diffstat (limited to 'bfd/coffcode.h')
-rw-r--r--bfd/coffcode.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/bfd/coffcode.h b/bfd/coffcode.h
index f48886e..1c52be5 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