diff options
author | Ian Lance Taylor <ian@airs.com> | 1993-08-04 16:36:10 +0000 |
---|---|---|
committer | Ian Lance Taylor <ian@airs.com> | 1993-08-04 16:36:10 +0000 |
commit | e4b6b3e71bd600c9ff393c9dd6d05379c7774082 (patch) | |
tree | 09d897a74890ead61c5f2a0d557817def8e8a871 /bfd/coffgen.c | |
parent | eea92b244242cd2e1ce682d9f83e9384608534f6 (diff) | |
download | gdb-e4b6b3e71bd600c9ff393c9dd6d05379c7774082.zip gdb-e4b6b3e71bd600c9ff393c9dd6d05379c7774082.tar.gz gdb-e4b6b3e71bd600c9ff393c9dd6d05379c7774082.tar.bz2 |
* 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.
Diffstat (limited to 'bfd/coffgen.c')
-rw-r--r-- | bfd/coffgen.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/bfd/coffgen.c b/bfd/coffgen.c index f86029d..dcdf9e9 100644 --- a/bfd/coffgen.c +++ b/bfd/coffgen.c @@ -1173,12 +1173,12 @@ bfd *abfd) } internal_ptr->u.syment._n._n_n._n_offset = - (int) (string_table - 4 + + (long) (string_table - 4 + (internal_ptr+1)->u.auxent.x_file.x_n.x_offset); } else { /* ordinary short filename, put into memory anyway */ - internal_ptr->u.syment._n._n_n._n_offset = (int) + internal_ptr->u.syment._n._n_n._n_offset = (long) copy_name(abfd, (internal_ptr+1)->u.auxent.x_file.x_fname, FILNMLEN); } @@ -1203,7 +1203,7 @@ bfd *abfd) } /* on error */ memset(newstring, 0, i); strncpy(newstring, internal_ptr->u.syment._n._n_name, i-1); - internal_ptr->u.syment._n._n_n._n_offset = (int) newstring; + internal_ptr->u.syment._n._n_n._n_offset = (long int) newstring; internal_ptr->u.syment._n._n_n._n_zeroes = 0; } else if (!bfd_coff_symname_in_debug(abfd, &internal_ptr->u.syment)) { @@ -1211,7 +1211,7 @@ bfd *abfd) if (string_table == NULL) { string_table = build_string_table(abfd); } - internal_ptr->u.syment._n._n_n._n_offset = (int) + internal_ptr->u.syment._n._n_n._n_offset = (long int) (string_table - 4 + internal_ptr->u.syment._n._n_n._n_offset); } else { @@ -1219,7 +1219,7 @@ bfd *abfd) if (debug_section == NULL) { debug_section = build_debug_section(abfd); } - internal_ptr->u.syment._n._n_n._n_offset = (int) + internal_ptr->u.syment._n._n_n._n_offset = (long int) (debug_section + internal_ptr->u.syment._n._n_n._n_offset); } } @@ -1363,11 +1363,11 @@ coff_print_symbol (abfd, filep, symbol, how) if (l) { - printf ("\n%s :", l->u.sym->name); + fprintf (file, "\n%s :", l->u.sym->name); l++; while (l->line_number) { - printf ("\n%4d : 0x%x", + fprintf (file, "\n%4d : 0x%x", l->line_number, l->u.offset); l++; |