This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
"relocation addend field"
- To: binutils at sources dot redhat dot com
- Subject: "relocation addend field"
- From: xinant at cognigine dot com (Xinan Tang)
- Date: Wed, 23 May 2001 09:19:01 -0700
- Organization: Cognigine Corporation
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