| 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 |
|
|
| 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; |
| 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) |
| 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; |