This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: "Create a symbol table"
- To: Alan Modra <amodra at bigpond dot net dot au>
- Subject: Re: "Create a symbol table"
- From: xinant at cognigine dot com (Xinan Tang)
- Date: Fri, 08 Jun 2001 20:14:08 -0700
- CC: binutils at sources dot redhat dot com
- Organization: Cognigine Corporation
- References: <3B2186E6.5040304@cognigine.com> <20010609123036.V12263@bubble.local>
Hi Alan,
Alan Modra wrote:
> On Fri, Jun 08, 2001 at 07:16:06PM -0700, Xinan Tang wrote:
>
>> Basically the symbol table has only one symbol, "foo_symbol".
>> However, once using `objdump' to dump the symbol table, it says
>> no symbols.
>>
>> __________________________________________
>>
>>> ./objdump -t foo_obj.o
>>
>> foo_obj.o: file format elf32-little
>>
>> ./objdump: foo_obj.o: no symbols
>> _______________________________________
>>
>> What did go wrong?
>
>
> The first entry of a symbol table is reserved.
The problem is NO symbol at all in the dumped .o file.
If you trace objdump' execution, you will find out that
the 'bfd->flags' is 0x0 is the problem.
Therefore, using bfd_set_symtab() alone to set the symbol table
is not enough. What else do we need to do?
Thanks
--
Dr. Xinan Tang Member of Technical Staff
EMail: xinant@cognigine.com Cognigine Corp.
Voice: 510.743.4930 6120 Stevenson Boulevard
Fax: 510.743.4910 Fremont, CA 94538