mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-10-17 21:03:55 +08:00
* bfd.c (struct _bfd): Added id field.
* opncls.c (_bfd_id_counter): New static variable. (_bfd_new_bfd): Use it. * bfd-in2.h: Rebuilt.
This commit is contained in:
@ -1,3 +1,10 @@
|
|||||||
|
2003-01-27 Alexandre Oliva <aoliva@redhat.com>
|
||||||
|
|
||||||
|
* bfd.c (struct _bfd): Added id field.
|
||||||
|
* opncls.c (_bfd_id_counter): New static variable.
|
||||||
|
(_bfd_new_bfd): Use it.
|
||||||
|
* bfd-in2.h: Rebuilt.
|
||||||
|
|
||||||
2003-01-25 Alan Modra <amodra@bigpond.net.au>
|
2003-01-25 Alan Modra <amodra@bigpond.net.au>
|
||||||
|
|
||||||
* elf32-sparc.c (bfd_elf32_new_section_hook): Define.
|
* elf32-sparc.c (bfd_elf32_new_section_hook): Define.
|
||||||
|
@ -3536,6 +3536,9 @@ bfd_copy_private_symbol_data PARAMS ((bfd *ibfd, asymbol *isym, bfd *obfd, asymb
|
|||||||
/* Extracted from bfd.c. */
|
/* Extracted from bfd.c. */
|
||||||
struct _bfd
|
struct _bfd
|
||||||
{
|
{
|
||||||
|
/* A unique identifier of the BFD */
|
||||||
|
unsigned int id;
|
||||||
|
|
||||||
/* The filename the application opened the BFD with. */
|
/* The filename the application opened the BFD with. */
|
||||||
const char *filename;
|
const char *filename;
|
||||||
|
|
||||||
|
@ -36,6 +36,9 @@ CODE_FRAGMENT
|
|||||||
.
|
.
|
||||||
.struct _bfd
|
.struct _bfd
|
||||||
.{
|
.{
|
||||||
|
. {* A unique identifier of the BFD *}
|
||||||
|
. unsigned int id;
|
||||||
|
.
|
||||||
. {* The filename the application opened the BFD with. *}
|
. {* The filename the application opened the BFD with. *}
|
||||||
. const char *filename;
|
. const char *filename;
|
||||||
.
|
.
|
||||||
|
@ -36,6 +36,10 @@
|
|||||||
#define S_IXOTH 0001 /* Execute by others. */
|
#define S_IXOTH 0001 /* Execute by others. */
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
/* Counter used to initialize the bfd identifier. */
|
||||||
|
|
||||||
|
static unsigned int _bfd_id_counter = 0;
|
||||||
|
|
||||||
/* fdopen is a loser -- we should use stdio exclusively. Unfortunately
|
/* fdopen is a loser -- we should use stdio exclusively. Unfortunately
|
||||||
if we do that we can't use fcntl. */
|
if we do that we can't use fcntl. */
|
||||||
|
|
||||||
@ -50,6 +54,8 @@ _bfd_new_bfd ()
|
|||||||
if (nbfd == NULL)
|
if (nbfd == NULL)
|
||||||
return NULL;
|
return NULL;
|
||||||
|
|
||||||
|
nbfd->id = _bfd_id_counter++;
|
||||||
|
|
||||||
nbfd->memory = (PTR) objalloc_create ();
|
nbfd->memory = (PTR) objalloc_create ();
|
||||||
if (nbfd->memory == NULL)
|
if (nbfd->memory == NULL)
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user