mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-09-20 03:29:33 +08:00
* aoutx.h (aout_get_external_symbols): Declare 'amt' locally.
* bfdwin.c (bfd_free_window): Cast to unsigned long.
This commit is contained in:
@ -1,3 +1,8 @@
|
|||||||
|
2009-07-02 Tom Tromey <tromey@redhat.com>
|
||||||
|
|
||||||
|
* aoutx.h (aout_get_external_symbols): Declare 'amt' locally.
|
||||||
|
* bfdwin.c (bfd_free_window): Cast to unsigned long.
|
||||||
|
|
||||||
2009-07-01 Nick Clifton <nickc@redhat.com>
|
2009-07-01 Nick Clifton <nickc@redhat.com>
|
||||||
|
|
||||||
* elf-m10300.c: Remove trailing white space.
|
* elf-m10300.c: Remove trailing white space.
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
/* BFD semi-generic back-end for a.out binaries.
|
/* BFD semi-generic back-end for a.out binaries.
|
||||||
Copyright 1990, 1991, 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
|
Copyright 1990, 1991, 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
|
||||||
2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007
|
2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2009
|
||||||
Free Software Foundation, Inc.
|
Free Software Foundation, Inc.
|
||||||
Written by Cygnus Support.
|
Written by Cygnus Support.
|
||||||
|
|
||||||
@ -1294,7 +1294,6 @@ aout_get_external_symbols (bfd *abfd)
|
|||||||
{
|
{
|
||||||
bfd_size_type count;
|
bfd_size_type count;
|
||||||
struct external_nlist *syms;
|
struct external_nlist *syms;
|
||||||
bfd_size_type amt;
|
|
||||||
|
|
||||||
count = exec_hdr (abfd)->a_syms / EXTERNAL_NLIST_SIZE;
|
count = exec_hdr (abfd)->a_syms / EXTERNAL_NLIST_SIZE;
|
||||||
if (count == 0)
|
if (count == 0)
|
||||||
@ -1314,6 +1313,8 @@ aout_get_external_symbols (bfd *abfd)
|
|||||||
if (syms == NULL)
|
if (syms == NULL)
|
||||||
return FALSE;
|
return FALSE;
|
||||||
|
|
||||||
|
{
|
||||||
|
bfd_size_type amt;
|
||||||
amt = exec_hdr (abfd)->a_syms;
|
amt = exec_hdr (abfd)->a_syms;
|
||||||
if (bfd_seek (abfd, obj_sym_filepos (abfd), SEEK_SET) != 0
|
if (bfd_seek (abfd, obj_sym_filepos (abfd), SEEK_SET) != 0
|
||||||
|| bfd_bread (syms, amt, abfd) != amt)
|
|| bfd_bread (syms, amt, abfd) != amt)
|
||||||
@ -1321,6 +1322,7 @@ aout_get_external_symbols (bfd *abfd)
|
|||||||
free (syms);
|
free (syms);
|
||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
obj_aout_external_syms (abfd) = syms;
|
obj_aout_external_syms (abfd) = syms;
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/* Support for memory-mapped windows into a BFD.
|
/* Support for memory-mapped windows into a BFD.
|
||||||
Copyright 1995, 1996, 2001, 2002, 2003, 2005, 2007, 2008
|
Copyright 1995, 1996, 2001, 2002, 2003, 2005, 2007, 2008, 2009
|
||||||
Free Software Foundation, Inc.
|
Free Software Foundation, Inc.
|
||||||
Written by Cygnus Support.
|
Written by Cygnus Support.
|
||||||
|
|
||||||
@ -78,7 +78,7 @@ bfd_free_window (bfd_window *windowp)
|
|||||||
i->refcount--;
|
i->refcount--;
|
||||||
if (debug_windows)
|
if (debug_windows)
|
||||||
fprintf (stderr, "freeing window @%p<%p,%lx,%p>\n",
|
fprintf (stderr, "freeing window @%p<%p,%lx,%p>\n",
|
||||||
windowp, windowp->data, windowp->size, windowp->i);
|
windowp, windowp->data, (unsigned long) windowp->size, windowp->i);
|
||||||
if (i->refcount != 0)
|
if (i->refcount != 0)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user