From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (from majordomo@localhost) by oss.sgi.com (8.11.2/8.11.3) id fB8Hn1Z16010 for linux-mips-outgoing; Sat, 8 Dec 2001 09:49:01 -0800 Received: from nevyn.them.org (mail@NEVYN.RES.CMU.EDU [128.2.145.6] (may be forged)) by oss.sgi.com (8.11.2/8.11.3) with SMTP id fB8Hmuo16006 for ; Sat, 8 Dec 2001 09:48:57 -0800 Received: from drow by nevyn.them.org with local (Exim 3.33 #1 (Debian)) id 16Ckd7-0005NT-00; Sat, 08 Dec 2001 11:47:13 -0500 Date: Sat, 8 Dec 2001 11:47:13 -0500 From: Daniel Jacobowitz To: Andreas Jaeger Cc: Guido Guenther , linux-mips@oss.sgi.com Subject: Re: understanding elf_machine_load_address Message-ID: <20011208114713.A20432@nevyn.them.org> References: <20011208141141.GA11437@bogon.ms20.nix> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.3.23i Sender: owner-linux-mips@oss.sgi.com Precedence: bulk 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