"Create a symbol table"
Xinan Tang
xinant@cognigine.com
Fri Jun 8 20:14:00 GMT 2001
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
More information about the Binutils
mailing list