This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: "relocation addend field"
Hi Nick,
Nick Clifton wrote:
> Are you using REL type relocations ? (As opposed to RELA). If so,
> then the addend is supposed to be located in the word being relocated
> and the addend value in the reloc structure, as displayed by objdump,
> will be zero.
>
> If you are using RELA type relocations, then there must be a bbug
> somewhere that is stopping the addend from being written into the
> reloc structure in the object file.
Thanks for help.
In bfd/efl32-mytarget.c, I did this
#define USE_REL 0
Is this enough to use RELA?
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