Re: [PATCH v7 04/17] tracing: add static function tracer supportfor MIPS

From: Ralf Baechle
Date: Thu Nov 12 2009 - 16:17:15 EST


On Wed, Nov 11, 2009 at 01:30:40PM +0000, Maciej W. Rozycki wrote:

>
> On Wed, 11 Nov 2009, Ralf Baechle wrote:
>
> > 64-bit with -mlong-call:
> >
> > lui $25, %highest(foo)
> > lui $2, %hi(foo)
> > daddiu $25, %higher(foo)
> > daddiu $2, %lo(foo)
> > dsll $25, 32
> > daddu $25, $2
> > jalr $25
>
> Don't we use -msym32 these days for this very reason?

We do - where we can. Not all systems can use -msym32.

Ralf
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/