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:


> I don't think I had enough coffee this morning.  The comment about
> the first entry of a symbol table has nothing to do with the
> problem.  :-(  I think your problem is calling bfd_set_section_contents
> too early.  That function should only be called after you have finished
> making changes to the bfd, as it fixes section offsets in the file, and
> writes out the symbol table.
> 
> Alan


   I see. I will try this order then.

     bfd_set_symtab() ;
     bfd_set_section_contents();

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]