diff options
Diffstat (limited to 'bfd/hp300hpux.c')
-rw-r--r-- | bfd/hp300hpux.c | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/bfd/hp300hpux.c b/bfd/hp300hpux.c index 5be01e3..fded557 100644 --- a/bfd/hp300hpux.c +++ b/bfd/hp300hpux.c @@ -786,14 +786,14 @@ doit: /* call aout_32 versions if the input file was generated by gcc */ /************************************************************************/ -unsigned int aout_32_get_symtab PARAMS ((bfd * abfd, asymbol ** location)); -unsigned int aout_32_get_symtab_upper_bound PARAMS ((bfd * abfd)); +long aout_32_get_symtab PARAMS ((bfd * abfd, asymbol ** location)); +long aout_32_get_symtab_upper_bound PARAMS ((bfd * abfd)); -unsigned int aout_32_canonicalize_reloc PARAMS ((bfd * abfd, sec_ptr section, - arelent ** relptr, - asymbol ** symbols)); +long aout_32_canonicalize_reloc PARAMS ((bfd * abfd, sec_ptr section, + arelent ** relptr, + asymbol ** symbols)); -unsigned int +long MY (get_symtab) (abfd, location) bfd *abfd; asymbol **location; @@ -805,7 +805,7 @@ MY (get_symtab) (abfd, location) return aout_32_get_symtab (abfd, location); if (!MY (slurp_symbol_table) (abfd)) - return 0; + return -1; for (symbase = obj_aout_symbols (abfd); counter++ < bfd_get_symcount (abfd);) *(location++) = (asymbol *) (symbase++); @@ -813,14 +813,14 @@ MY (get_symtab) (abfd, location) return bfd_get_symcount (abfd); } -unsigned int +long MY (get_symtab_upper_bound) (abfd) bfd *abfd; { if (obj_aout_subformat (abfd) == gnu_encap_format) return aout_32_get_symtab_upper_bound (abfd); if (!MY (slurp_symbol_table) (abfd)) - return 0; + return -1; return (bfd_get_symcount (abfd) + 1) * (sizeof (aout_symbol_type *)); } @@ -828,7 +828,7 @@ MY (get_symtab_upper_bound) (abfd) -unsigned int +long MY (canonicalize_reloc) (abfd, section, relptr, symbols) bfd *abfd; sec_ptr section; @@ -841,7 +841,7 @@ MY (canonicalize_reloc) (abfd, section, relptr, symbols) return aout_32_canonicalize_reloc (abfd, section, relptr, symbols); if (!(tblptr || MY (slurp_reloc_table) (abfd, section, symbols))) - return 0; + return -1; if (section->flags & SEC_CONSTRUCTOR) { @@ -856,7 +856,7 @@ MY (canonicalize_reloc) (abfd, section, relptr, symbols) { tblptr = section->relocation; if (!tblptr) - return 0; + return -1; for (count = 0; count++ < section->reloc_count;) { |