aboutsummaryrefslogtreecommitdiff
path: root/bfd/coffcode.h
diff options
context:
space:
mode:
authorIan Lance Taylor <ian@airs.com>1999-09-07 03:00:32 +0000
committerIan Lance Taylor <ian@airs.com>1999-09-07 03:00:32 +0000
commit8a1ad8e7939da9208857b95ee6f62d2e4f4db4a4 (patch)
treedc40cb672da6b5ea037f64956cf2442de8bdeaae /bfd/coffcode.h
parent6fb72d08dc67b5a160181aec50f162b5ca5f2c01 (diff)
downloadgdb-8a1ad8e7939da9208857b95ee6f62d2e4f4db4a4.zip
gdb-8a1ad8e7939da9208857b95ee6f62d2e4f4db4a4.tar.gz
gdb-8a1ad8e7939da9208857b95ee6f62d2e4f4db4a4.tar.bz2
1999-09-06 Donn Terry <donn@interix.com>
* coffcode.h (coff_set_custom_section_alignment): Add const to declaration to match definition. (coff_write_object_contents): Don't set F_AR32W(R)? if COFF_WITH_PE.
Diffstat (limited to 'bfd/coffcode.h')
-rw-r--r--bfd/coffcode.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/bfd/coffcode.h b/bfd/coffcode.h
index 5f82f85..4b0a39d 100644
--- a/bfd/coffcode.h
+++ b/bfd/coffcode.h
@@ -318,7 +318,7 @@ static flagword styp_to_sec_flags
static boolean coff_bad_format_hook PARAMS ((bfd *, PTR));
static void coff_set_custom_section_alignment
PARAMS ((bfd *, asection *, const struct coff_section_alignment_entry *,
- unsigned int));
+ const unsigned int));
static boolean coff_new_section_hook PARAMS ((bfd *, asection *));
static boolean coff_set_arch_mach_hook PARAMS ((bfd *, PTR));
static boolean coff_write_relocs PARAMS ((bfd *, int));
@@ -3223,11 +3223,12 @@ coff_write_object_contents (abfd)
if (abfd->flags & EXEC_P)
internal_f.f_flags |= F_EXEC;
- /* FIXME: this is wrong for PPC_PE! */
+#ifndef COFF_WITH_PE
if (bfd_little_endian (abfd))
internal_f.f_flags |= F_AR32WR;
else
internal_f.f_flags |= F_AR32W;
+#endif
#ifdef TIC80_TARGET_ID
internal_f.f_target_id = TIC80_TARGET_ID;