ralocation entries and relaxation questions.
Ravi Ramaseshan
ramaseshan.ravi@gmail.com
Thu Aug 11 14:08:00 GMT 2005
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. "
More information about the Binutils
mailing list