1,6 → 1,5 |
/* BFD back-end for Intel Hex objects. |
Copyright 1995, 1996, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, |
2006, 2007, 2009, 2011 Free Software Foundation, Inc. |
Copyright (C) 1995-2015 Free Software Foundation, Inc. |
Written by Ian Lance Taylor of Cygnus Support <ian@cygnus.com>. |
|
This file is part of BFD, the Binary File Descriptor library. |
220,7 → 219,7 |
char buf[10]; |
|
if (! ISPRINT (c)) |
sprintf (buf, "\\%03o", (unsigned int) c); |
sprintf (buf, "\\%03o", (unsigned int) c & 0xff); |
else |
{ |
buf[0] = c; |
277,7 → 276,7 |
else |
{ |
file_ptr pos; |
char hdr[8]; |
unsigned char hdr[8]; |
unsigned int i; |
unsigned int len; |
bfd_vma addr; |
322,7 → 321,7 |
{ |
if (! ISHEX (buf[i])) |
{ |
ihex_bad_byte (abfd, lineno, hdr[i], error); |
ihex_bad_byte (abfd, lineno, buf[i], error); |
goto error_return; |
} |
} |
554,7 → 553,7 |
error = FALSE; |
while ((c = ihex_get_byte (abfd, &error)) != EOF) |
{ |
char hdr[8]; |
unsigned char hdr[8]; |
unsigned int len; |
unsigned int type; |
unsigned int i; |
919,10 → 918,12 |
#define ihex_make_empty_symbol _bfd_generic_make_empty_symbol |
#define ihex_print_symbol _bfd_nosymbols_print_symbol |
#define ihex_get_symbol_info _bfd_nosymbols_get_symbol_info |
#define ihex_get_symbol_version_string _bfd_nosymbols_get_symbol_version_string |
#define ihex_bfd_is_target_special_symbol ((bfd_boolean (*) (bfd *, asymbol *)) bfd_false) |
#define ihex_bfd_is_local_label_name _bfd_nosymbols_bfd_is_local_label_name |
#define ihex_get_lineno _bfd_nosymbols_get_lineno |
#define ihex_find_nearest_line _bfd_nosymbols_find_nearest_line |
#define ihex_find_line _bfd_nosymbols_find_line |
#define ihex_find_inliner_info _bfd_nosymbols_find_inliner_info |
#define ihex_bfd_make_debug_symbol _bfd_nosymbols_bfd_make_debug_symbol |
#define ihex_read_minisymbols _bfd_nosymbols_read_minisymbols |
937,7 → 938,6 |
#define ihex_section_already_linked _bfd_generic_section_already_linked |
#define ihex_bfd_define_common_symbol bfd_generic_define_common_symbol |
#define ihex_bfd_link_hash_table_create _bfd_generic_link_hash_table_create |
#define ihex_bfd_link_hash_table_free _bfd_generic_link_hash_table_free |
#define ihex_bfd_link_add_symbols _bfd_generic_link_add_symbols |
#define ihex_bfd_link_just_syms _bfd_generic_link_just_syms |
#define ihex_bfd_copy_link_hash_symbol_type \ |