From e4b6b3e71bd600c9ff393c9dd6d05379c7774082 Mon Sep 17 00:00:00 2001 From: Ian Lance Taylor Date: Wed, 4 Aug 1993 16:36:10 +0000 Subject: * coff-h8500.c (rtype2howto): Do an fprintf to stderr rather than using printf. * coff-z8k.c (rtype2howto): Likewise. * coffcode.h (dummy_reloc16_extra_cases): Likewise. * elf32-i386.c (TRACE): Likewise. * hp300hpux.c (convert_sym_type, swap_std_reloc_in): Likewise. * rs6000-core.c (rs6000coff_get_section_contents): Likewise. * coffgen.c (coff_print_symbol): Do an fprintf to the file argument rather than using printf. --- bfd/coffcode.h | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'bfd/coffcode.h') diff --git a/bfd/coffcode.h b/bfd/coffcode.h index 721a7e9..e26f1be 100644 --- a/bfd/coffcode.h +++ b/bfd/coffcode.h @@ -818,9 +818,9 @@ coff_set_arch_mach_hook(abfd, filehdr) switch (internal_f->f_magic) { #ifdef I386MAGIC case I386MAGIC: -#ifdef I386AIXMAGIC + case I386PTXMAGIC: case I386AIXMAGIC: /* Danbury PS/2 AIX C Compiler */ -#endif + case I386LYNXMAGIC: arch = bfd_arch_i386; machine = 0; break; @@ -2079,8 +2079,9 @@ SUBSUBSECTION #ifndef CALC_ADDEND #define CALC_ADDEND(abfd, ptr, reloc, cache_ptr) \ - if (ptr && bfd_asymbol_bfd(ptr) == abfd \ - && ((ptr->flags & BSF_OLD_COMMON)== 0)) \ + if (ptr && bfd_asymbol_bfd(ptr) == abfd \ + && !bfd_is_com_section(ptr->section) \ + && !(ptr->flags & BSF_OLD_COMMON)) \ { \ cache_ptr->addend = -(ptr->section->vma + ptr->value); \ } \ @@ -2251,7 +2252,7 @@ dummy_reloc16_extra_cases (abfd, seclet, reloc, data, src_ptr, dst_ptr) unsigned int *src_ptr; unsigned int *dst_ptr; { - printf("%s\n", reloc->howto->name); + fprintf(stderr, "%s\n", reloc->howto->name); abort (); } #endif -- cgit v1.1