diff options
author | Alan Modra <amodra@bigpond.net.au> | 2010-05-11 04:42:09 +0000 |
---|---|---|
committer | Alan Modra <amodra@bigpond.net.au> | 2010-05-11 04:42:09 +0000 |
commit | 82b1435c904838bad8b3c1cd8c0f86656fc094dc (patch) | |
tree | 29a3d5a88357efa20b701673de64c99632b1b938 /bfd/coffcode.h | |
parent | b84b0d00f57e2d1b61f39e9300cfe215d8da673a (diff) | |
download | binutils-redhat-82b1435c904838bad8b3c1cd8c0f86656fc094dc.tar.gz |
* coffcode.h (coff_write_object_contents): Enclose all occurrences
of hasdebug and is_reloc_section in #ifdef COFF_IMAGE_WITH_PE.
Diffstat (limited to 'bfd/coffcode.h')
-rw-r--r-- | bfd/coffcode.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/bfd/coffcode.h b/bfd/coffcode.h index 364daaad5c..1cf2b4e35f 100644 --- a/bfd/coffcode.h +++ b/bfd/coffcode.h @@ -3533,7 +3533,9 @@ coff_write_object_contents (bfd * abfd) asection *current; bfd_boolean hasrelocs = FALSE; bfd_boolean haslinno = FALSE; +#ifdef COFF_IMAGE_WITH_PE bfd_boolean hasdebug = FALSE; +#endif file_ptr scn_base; file_ptr reloc_base; file_ptr lineno_base; @@ -3636,9 +3638,9 @@ coff_write_object_contents (bfd * abfd) current = current->next) { struct internal_scnhdr section; +#ifdef COFF_IMAGE_WITH_PE bfd_boolean is_reloc_section = FALSE; -#ifdef COFF_IMAGE_WITH_PE if (strcmp (current->name, DOT_RELOC) == 0) { is_reloc_section = TRUE; @@ -3737,9 +3739,11 @@ coff_write_object_contents (bfd * abfd) #endif if (current->lineno_count != 0) haslinno = TRUE; +#ifdef COFF_IMAGE_WITH_PE if ((current->flags & SEC_DEBUGGING) != 0 && ! is_reloc_section) hasdebug = TRUE; +#endif #ifdef RS6000COFF_C #ifndef XCOFF64 |