aboutsummaryrefslogtreecommitdiff
path: root/bfd/coffcode.h
diff options
context:
space:
mode:
authorIan Lance Taylor <ian@airs.com>1996-01-03 20:07:39 +0000
committerIan Lance Taylor <ian@airs.com>1996-01-03 20:07:39 +0000
commitd812945a9aac418f7272c591c1a29178e277d025 (patch)
tree4cabe53c0684e6f2e478a08fe4dbbf4541f8f89b /bfd/coffcode.h
parent1d935cf62c73c597c900bd2b83228e77c690bb3f (diff)
downloadgdb-d812945a9aac418f7272c591c1a29178e277d025.zip
gdb-d812945a9aac418f7272c591c1a29178e277d025.tar.gz
gdb-d812945a9aac418f7272c591c1a29178e277d025.tar.bz2
* coffcode.h (coff_write_object_contents): If we don't know the
section of the entry point for an XCOFF executable, always set the entry address to -1.
Diffstat (limited to 'bfd/coffcode.h')
-rw-r--r--bfd/coffcode.h11
1 files changed, 5 insertions, 6 deletions
diff --git a/bfd/coffcode.h b/bfd/coffcode.h
index 75d00c2..1eb9ba8 100644
--- a/bfd/coffcode.h
+++ b/bfd/coffcode.h
@@ -1,5 +1,5 @@
/* Support for the generic parts of most COFF variants, for BFD.
- Copyright 1990, 91, 92, 93, 94, 1995 Free Software Foundation, Inc.
+ Copyright 1990, 91, 92, 93, 94, 95, 1996 Free Software Foundation, Inc.
Written by Cygnus Support.
This file is part of BFD, the Binary File Descriptor library.
@@ -1770,7 +1770,7 @@ coff_set_flags (abfd, magicp, flagsp)
#ifdef SH_ARCH_MAGIC_BIG
case bfd_arch_sh:
- if (abfd->xvec->byteorder_big_p)
+ if (bfd_big_endian (abfd))
*magicp = SH_ARCH_MAGIC_BIG;
else
*magicp = SH_ARCH_MAGIC_LITTLE;
@@ -1797,7 +1797,7 @@ coff_set_flags (abfd, magicp, flagsp)
#endif
#ifdef A29K_MAGIC_BIG
case bfd_arch_a29k:
- if (abfd->xvec->byteorder_big_p)
+ if (bfd_big_endian (abfd))
*magicp = A29K_MAGIC_BIG;
else
*magicp = A29K_MAGIC_LITTLE;
@@ -2363,7 +2363,7 @@ coff_write_object_contents (abfd)
internal_f.f_flags |= F_EXEC;
/* FIXME: this is wrong for PPC_PE! */
- if (!abfd->xvec->byteorder_big_p)
+ if (bfd_little_endian (abfd))
internal_f.f_flags |= F_AR32WR;
else
internal_f.f_flags |= F_AR32W;
@@ -2565,8 +2565,7 @@ coff_write_object_contents (abfd)
else
{
internal_a.o_snentry = 0;
- if (internal_a.entry == 0)
- internal_a.entry = (bfd_vma) -1;
+ internal_a.entry = (bfd_vma) -1;
}
if (text_sec != NULL)