This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: ralocation entries and relaxation questions.
- From: Ravi Ramaseshan <ramaseshan dot ravi at gmail dot com>
- To: ddiky <ddiky at alarity dot com>
- Cc: binutils at sources dot redhat dot com
- Date: Thu, 11 Aug 2005 10:08:03 -0400
- Subject: Re: ralocation entries and relaxation questions.
- References: <200508111027.j7BAR23W011998@Linux2Srv.argus-neva.ru>
Hi,
On 8/11/05, ddiky <ddiky@alarity.com> wrote:
> Fellows,
>
> I got a question concerning relocation of symbols defined as 'section start
> plus some value'.
>
> So, for the code given
>
> br .l1
> ... ; more 16 bytes
> .l1:
> ...
>
> I got relocation recorded as:
> 00000000 R_PC_16 .text+0x00000010
>
> The long instruction 'br abs_addr' can be relaxed to short 'jmp disp'.
> I do not want to relax this on assembly stage cause there may be some
> branches between 'br .l1' and '.l1:'.
I do not understand your reason for not doing it at the assembly stage
itself. Why should the existence of branches between 'br .l1' and
'.l1:'. matter ? I think this sort of a relaxation could definitely be
done in the assembler itself and need not be pushed to the linker.
Regards,
--
Ravi Ramaseshan
http://www.geocities.com/ramaseshan_ravi/
" Reality is only something we believe in strongly. "