This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: Relocation Problem
- From: Nick Clifton <nickc at cambridge dot redhat dot com>
- To: pallavi elkawar <pelkawar at yahoo dot com>
- Cc: binutils at sources dot redhat dot com
- Date: 30 Jan 2002 10:37:47 +0000
- Subject: Re: Relocation Problem
- References: <20020129050302.87343.qmail@web9807.mail.yahoo.com>
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