This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: When using objdump on an object file...
- From: Ian Lance Taylor <ian at airs dot com>
- To: James Sampson <i_am_triumph at ofir dot dk>
- Cc: BINUTILS Archive <binutils at sources dot redhat dot com>
- Date: 27 Jan 2003 08:14:22 -0800
- Subject: Re: When using objdump on an object file...
- References: <20030127132555.8E2846D022@postfix3.ofir.com>
James Sampson <i_am_triumph@ofir.dk> writes:
> If I'm using objdump on an object file, it naturally uses the BFD to extract
> information from that file. But since its only one file I'm working with, does
> this mean that only one instance of the BFD's abfd is instatiated, or does it
> use multiple abfd's per file?.
I don't understand precisely what you are asking. abfd is a typical
variable name used for a BFD, but it's not a structure name.
It's true that objdump will normally create one instance of the `bfd'
type (`bfd' is a typedef for `struct _bfd'). It is created via a call
to bfd_openr(). bfd_openr() is normally called once in a single run
of objdump on an object file.
Ian