This is the mail archive of the binutils@sourceware.org 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: ralocation entries and relaxation questions.


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. "


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