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]

"relocation addend field"


Hi

  Thanks Alan Modra for answering my question on relocation.
Now allow me to elaborate my question about generating
relocation entry.

  In tc_gen_reloc(), this is what I did,

    rel->addend  = fixp->fx_addnumber;

  I.e., I am using fx_addnumber to pass value between md_apply_fix() and
tc_gen_reloc(). This `addend' NON-ZERO value can be seen until the last
call in write_object_file().

  However, when using `objdump' to print the relocation info.
the field `addend' is ZERO. How could this happen?

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]