summaryrefslogtreecommitdiff
path: root/bfd
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2010-05-11 04:42:10 +0000
committerAlan Modra <amodra@gmail.com>2010-05-11 04:42:10 +0000
commit3390ce3004b151603ed765692601af7050fa53fd (patch)
treed2ae8d01ee040db2956abad97a2d6e5dbc850bca /bfd
parent9d9b811621a0011e4c15b0d26ab1333bb7bfa0ac (diff)
* 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')
-rw-r--r--bfd/ChangeLog5
-rw-r--r--bfd/coffcode.h6
2 files changed, 10 insertions, 1 deletions
diff --git a/bfd/ChangeLog b/bfd/ChangeLog
index 2302ae4394..5cfcc878c1 100644
--- a/bfd/ChangeLog
+++ b/bfd/ChangeLog
@@ -1,3 +1,8 @@
+2010-05-11 Alan Modra <amodra@gmail.com>
+
+ * coffcode.h (coff_write_object_contents): Enclose all occurrences
+ of hasdebug and is_reloc_section in #ifdef COFF_IMAGE_WITH_PE.
+
2010-05-07 Daniel Jacobowitz <dan@codesourcery.com>
* elf32-arm.c (struct a8_erratum_reloc): Add hash member. Move
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