Re: understanding elf_machine_load_address

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Sat, Dec 08, 2001 at 04:18:53PM +0100, Andreas Jaeger wrote:
> >        "	bltzal $0, here\n"
> >        "	nop\n"
> >        "here:	subu %0, $31, %0\n"
> 
> Subtract shared address of "here" from address of "here" at build time
> - and you know at which address byte 0 of the shared library is
>   loaded.

Wait a second.  Does bltzal fill in $31 even on a not-taken branch? 
Because bltzal $0 should never be taken.  My handy MIPS reference and
SPIM seem to agree that it won't fill in $31.

-- 
Daniel Jacobowitz                           Carnegie Mellon University
MontaVista Software                         Debian GNU/Linux Developer

[Index of Archives]     [Linux MIPS Home]     [LKML Archive]     [Linux ARM Kernel]     [Linux ARM]     [Linux]     [Git]     [Yosemite News]     [Linux SCSI]     [Linux Hams]

  Powered by Linux