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]
Other format: [Raw text]

Re: Relocation Problem


Hi Pallavi,

>  Here is the problem description -
> 
>  1> How assembler calculates 'Addend' for relocatable 
> expression? ie the value of 'Addend' in RELA
> relocation type and 'Addend'  found in the
> instruction for REL relocation.

Take a look at the function bfd_install_relocation() in bfd/reloc.c.


>  2> Is the calculation processor specific?

Yes. It is also binary file format specific and often compile time
option specific (eg big endian vs little endian).

>  Pls guide me to some pointers on this - web or
> otherwise guidlines.

I recommend that your buy a copy of the book "Linkers & Loaders" by
John R, Levine (ISBN: 1-55860-496-0) which has entire chapter on this
subject.

Cheers
        Nick


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