linux-mips
[Top] [All Lists]

Re: Who know latest Linux/MIPS ABI ?

To: 김민찬 <barrioskmc@gmail.com>
Subject: Re: Who know latest Linux/MIPS ABI ?
From: Jim Wilson <wilson@specifix.com>
Date: Fri, 16 Feb 2007 10:50:46 -0800
Cc: linux-mips@linux-mips.org
In-reply-to: <000701c750a3$24ecf9b0$8aab580a@swcenter.sec.samsung.co.kr>
Original-recipient: rfc822;linux-mips@linux-mips.org
References: <000701c750a3$24ecf9b0$8aab580a@swcenter.sec.samsung.co.kr>
Sender: linux-mips-bounce@linux-mips.org
On Thu, 2007-02-15 at 10:46 +0900, 김민찬 wrote:
> I hope I get a latest MIPS ABI and ELF Spec on Linux/MIPS. 
> Who know where I get it?

There is some documentation available from SGI.  Try
  http://docs.sgi.com
You start by searching for ABI, but there may also be other docs you
want to look at.  There may also be relevant documentation available
from MIPS.  Try them also.
  http://www.mips.com
and then hunt around for documentation.

You can find good info on calling conventions in these places, but you
aren't going to find good info on low level stuff like object file
formats.  For that, you will probably need to read code.  You have two
basic choices here.
1) Buy an SGI Irix5 and/or Irix6 machine, and start reading header files
in /usr/include.  Irix5 has ECOFF and ELF o32 support.  Irix6 has ELF
o32, n32, and n64 support.
2) Start reading the MIPS bfd support in GNU binutils.

jcr is a gcc feature for java.  Something like "java class record".  It
should be safe to ignore it unless you are using java.  This isn't MIPS
specific.

pdr is procedure descriptor record.  It is a left over from the SGI
Irix5 ECOFF days, which SGI carried forward into their ELF
implementation, and which was copied by the GNU and linux tools.

For MIPS.stubs, that one I didn't know, I had to look it up.  The bfd
comments say it is for dynamic linking, so that function pointer
comparisons work correctly for functions defined in shared libraries.
-- 
Jim Wilson, GNU Tools Support, http://www.specifix.com



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