From d812945a9aac418f7272c591c1a29178e277d025 Mon Sep 17 00:00:00 2001 From: Ian Lance Taylor Date: Wed, 3 Jan 1996 20:07:39 +0000 Subject: [PATCH] * 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. --- bfd/ChangeLog | 10 ++++++++++ bfd/coffcode.h | 11 +++++------ 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 + + * 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 * elf.c (bfd_section_from_shdr): Add support for note sections. Tue Jan 2 13:10:25 1996 Ian Lance Taylor + * 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) -- 2.7.4