Develop and Download Open Source Software

Browse Subversion Repository

Diff of /trunk/bfd/aoutx.h

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 20 by monabuilder, Sun Dec 7 02:23:44 2008 UTC revision 21 by monamour, Mon Jul 27 20:34:36 2009 UTC
# Line 1  Line 1 
1  /* BFD semi-generic back-end for a.out binaries.  /* BFD semi-generic back-end for a.out binaries.
2     Copyright 1990, 1991, 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,     Copyright 1990, 1991, 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
3     2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007     2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2009
4     Free Software Foundation, Inc.     Free Software Foundation, Inc.
5     Written by Cygnus Support.     Written by Cygnus Support.
6    
# Line 795  NAME (aout, machine_type) (enum bfd_arch Line 795  NAME (aout, machine_type) (enum bfd_arch
795          case bfd_mach_mipsisa64:          case bfd_mach_mipsisa64:
796          case bfd_mach_mipsisa64r2:          case bfd_mach_mipsisa64r2:
797          case bfd_mach_mips_sb1:          case bfd_mach_mips_sb1:
798            case bfd_mach_mips_xlr:
799            /* FIXME: These should be MIPS3, MIPS4, MIPS16, MIPS32, etc.  */            /* FIXME: These should be MIPS3, MIPS4, MIPS16, MIPS32, etc.  */
800            arch_flags = M_MIPS2;            arch_flags = M_MIPS2;
801            break;            break;
# Line 1293  aout_get_external_symbols (bfd *abfd) Line 1294  aout_get_external_symbols (bfd *abfd)
1294      {      {
1295        bfd_size_type count;        bfd_size_type count;
1296        struct external_nlist *syms;        struct external_nlist *syms;
       bfd_size_type amt;  
1297    
1298        count = exec_hdr (abfd)->a_syms / EXTERNAL_NLIST_SIZE;        count = exec_hdr (abfd)->a_syms / EXTERNAL_NLIST_SIZE;
1299        if (count == 0)        if (count == 0)
# Line 1313  aout_get_external_symbols (bfd *abfd) Line 1313  aout_get_external_symbols (bfd *abfd)
1313        if (syms == NULL)        if (syms == NULL)
1314          return FALSE;          return FALSE;
1315    
1316        amt = exec_hdr (abfd)->a_syms;        {
1317        if (bfd_seek (abfd, obj_sym_filepos (abfd), SEEK_SET) != 0          bfd_size_type amt;
1318            || bfd_bread (syms, amt, abfd) != amt)          amt = exec_hdr (abfd)->a_syms;
1319          {          if (bfd_seek (abfd, obj_sym_filepos (abfd), SEEK_SET) != 0
1320            free (syms);              || bfd_bread (syms, amt, abfd) != amt)
1321            return FALSE;            {
1322          }              free (syms);
1323                return FALSE;
1324              }
1325          }
1326  #endif  #endif
1327    
1328        obj_aout_external_syms (abfd) = syms;        obj_aout_external_syms (abfd) = syms;

Legend:
Removed from v.20  
changed lines
  Added in v.21

Back to OSDN">Back to OSDN
ViewVC Help
Powered by ViewVC 1.1.26