[Top] [All Lists]

Re: bal instruction in gcc 3.x

To: "Maciej W. Rozycki" <>
Subject: Re: bal instruction in gcc 3.x
From: Thiemo Seufer <>
Date: Wed, 20 Jul 2005 15:25:24 +0200
Cc: Alexander Voropay <>, Kishore K <>,
In-reply-to: <>
Original-recipient: rfc822;
References: <> <> <> <1121802786.7285.88.camel@localhost.localdomain> <> <> <010901c58d28$15e2a3b0$6cf9a8c0@ALEC> <>
User-agent: Mutt/1.5.9i
Maciej W. Rozycki wrote:
> On Wed, 20 Jul 2005, Alexander Voropay wrote:
> > 3) AFAIK (correct me), there is no MIPS-specific RELOC type for
> > the "branch"  instruction format in the BFD, so "bal" to the *external*
> > symbols is impossible.
>  There is a reloc called BFD_RELOC_16_PCREL_S2 which is used for branches 
> by BFD internally, but unfortunately the original SysV ELF supplement for 
> MIPS failed to define an appropriate relocation for this purpose (there is 
> useless R_MIPS_PC16, though), so there is nothing to map this internal 
> relocation to.  There were discussions as to whether reuse R_MIPS_PC16 for 
> branches or not.  Unfortunately I don't remember the conclusion -- you'd 
> have to find it out yourself.

It is ok to reuse it, but nobody has done the work yet.


<Prev in Thread] Current Thread [Next in Thread>