This is the mail archive of the binutils@sources.redhat.com 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: MIPS patch to avoid lazy binding in la macros


On Sat, Feb 22, 2003 at 04:22:30PM +0000, Richard Sandiford wrote:
> Alexandre Oliva <aoliva at redhat dot com> writes:
> > On Feb 20, 2003, Richard Sandiford <rsandifo at redhat dot com> wrote:
> > > But due to a suspect feature, gas treats
> > 
> > >         la $25,foo
> > 
> > > as a special case and allows foo to be lazily bound.  Not the
> > > desired effect. ;)
> > 
> > How about doing the lazy binding but, if you find any intervening use
> > of $25 between the la and the jump to $25, you force early binding?
> 
> Please no ;)  I think the worst thing we can do is build yet
> more hacks on top of what we already have.  The mips reloc code
> is hairy enough as it is.
> 
> Hmm.  I see you're responding to my first message.  As I said
> in a follow-up, I think we should stop gcc splitting the jal
> macro in final.  Sound reasonable?

If you do this, you introduce another required version binding between
GCC and binutils to create a working MIPS toolchain; and it has some
degree of ABI impact.

Those aren't reasons not to do it, but please do consider them.

-- 
Daniel Jacobowitz
MontaVista Software                         Debian GNU/Linux Developer


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