diff options
author | Ian Lance Taylor <ian@airs.com> | 1995-12-14 18:46:54 +0000 |
---|---|---|
committer | Ian Lance Taylor <ian@airs.com> | 1995-12-14 18:46:54 +0000 |
commit | 0d709d3137ba26f7e93c3ca8a40d5c2464348a51 (patch) | |
tree | a95e702d8ec30c104d5a6c5056e167ea2c6c593d /bfd/ihex.c | |
parent | 48ac185397f0f9135c0531ba0086f44f4882047e (diff) | |
download | gdb-0d709d3137ba26f7e93c3ca8a40d5c2464348a51.zip gdb-0d709d3137ba26f7e93c3ca8a40d5c2464348a51.tar.gz gdb-0d709d3137ba26f7e93c3ca8a40d5c2464348a51.tar.bz2 |
* ihex.c (ihex_set_arch_mach): Don't accept any architecture, just
a recognized one or bfd_arch_unknown.
(ihex_get_symtab_upper_bound): Define as bfd_0l, to permit objcopy
to succeed.
(ihex_get_symtab): Likewise.
Diffstat (limited to 'bfd/ihex.c')
-rw-r--r-- | bfd/ihex.c | 11 |
1 files changed, 8 insertions, 3 deletions
@@ -899,7 +899,11 @@ ihex_set_arch_mach (abfd, arch, mach) enum bfd_architecture arch; unsigned long mach; { - bfd_default_set_arch_mach (abfd, arch, mach); + if (! bfd_default_set_arch_mach (abfd, arch, mach)) + { + if (arch != bfd_arch_unknown) + return false; + } return true; } @@ -922,8 +926,9 @@ ihex_sizeof_headers (abfd, exec) #define ihex_get_section_contents_in_window \ _bfd_generic_get_section_contents_in_window -#define ihex_get_symtab_upper_bound _bfd_nosymbols_get_symtab_upper_bound -#define ihex_get_symtab _bfd_nosymbols_get_symtab +#define ihex_get_symtab_upper_bound bfd_0l +#define ihex_get_symtab \ + ((long (*) PARAMS ((bfd *, asymbol **))) bfd_0l) #define ihex_print_symbol _bfd_nosymbols_print_symbol #define ihex_get_symbol_info _bfd_nosymbols_get_symbol_info #define ihex_bfd_is_local_label _bfd_nosymbols_bfd_is_local_label |