This is the mail archive of the binutils@sources.redhat.com mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: "Create a symbol table"


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]