Wed Mar 30 16:25:41 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
[deliverable/binutils-gdb.git] / bfd / hp300hpux.c
index 5be01e30c246105341e9ad6ac473ad147eddfe2c..fded55711df2141ea635736fc8fea3df5cb992d0 100644 (file)
@@ -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;)
        {
This page took 0.024037 seconds and 4 git commands to generate.