aboutsummaryrefslogtreecommitdiff
path: root/bfd
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
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')
-rw-r--r--bfd/ChangeLog10
-rw-r--r--bfd/coffcode.h11
2 files changed, 15 insertions, 6 deletions
diff --git a/bfd/ChangeLog b/bfd/ChangeLog
index 0c9bca6..ee1d97f 100644
--- a/bfd/ChangeLog
+++ b/bfd/ChangeLog
@@ -1,9 +1,19 @@
+Wed Jan 3 15:11:30 1996 Ian Lance Taylor <ian@cygnus.com>
+
+ * 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.
+
Tue Jan 2 14:17:15 1996 Michael Meissner <meissner@tiktok.cygnus.com>
* elf.c (bfd_section_from_shdr): Add support for note sections.
Tue Jan 2 13:10:25 1996 Ian Lance Taylor <ian@cygnus.com>
+ * bfd-in.h (struct _symbol_info): Add stab_type field.
+ * bfd-in2.h: Rebuild.
+ * aoutx.h (NAME(aout,get_symbol_info)): Set stab_type.
+
* elf32-ppc.c: Remove trailing newline from calls to
_bfd_error_handler.
(ppc_elf_merge_private_bfd_data): Only warn about endianness
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)