From owner-freebsd-arch@FreeBSD.ORG Thu Aug 30 21:30:12 2012 Return-Path: Delivered-To: freebsd-arch@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 754831065675 for ; Thu, 30 Aug 2012 21:30:12 +0000 (UTC) (envelope-from sgk@troutmask.apl.washington.edu) Received: from troutmask.apl.washington.edu (troutmask.apl.washington.edu [128.95.76.21]) by mx1.freebsd.org (Postfix) with ESMTP id 527618FC0C for ; Thu, 30 Aug 2012 21:30:12 +0000 (UTC) Received: from troutmask.apl.washington.edu (localhost.apl.washington.edu [127.0.0.1]) by troutmask.apl.washington.edu (8.14.5/8.14.5) with ESMTP id q7ULU5XY081688; Thu, 30 Aug 2012 14:30:05 -0700 (PDT) (envelope-from sgk@troutmask.apl.washington.edu) Received: (from sgk@localhost) by troutmask.apl.washington.edu (8.14.5/8.14.5/Submit) id q7ULU4TI081687; Thu, 30 Aug 2012 14:30:04 -0700 (PDT) (envelope-from sgk) Date: Thu, 30 Aug 2012 14:30:04 -0700 From: Steve Kargl To: asp imho Message-ID: <20120830213004.GA81386@troutmask.apl.washington.edu> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4.2.3i Cc: freebsd-arch@freebsd.org Subject: Re: FreeBSD complies with which ABI X-BeenThere: freebsd-arch@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussion related to FreeBSD architecture List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 30 Aug 2012 21:30:12 -0000 On Thu, Aug 30, 2012 at 01:40:22PM -0700, asp imho wrote: > Hi all, > > Which ABI does FreeBSD comply to for multiple architectures (x86, > powerpc)... I've seen that the executable is in the ELF format (specified > in System V ABI), so does this mean that we comply to System V ABI > completely for all architectures. Please let me know. > man brandelf % brandelf -l known ELF types are: FreeBSD(9) Linux(3) Solaris(6) SVR4(0) On an AMD64 system with compat_linux: % elfdump -e /bin/cat | grep e_ident e_ident: ELFCLASS64 ELFDATA2LSB ELFOSABI_FREEBSD % elfdump -e /compat/linux//bin/cat | grep e_ident e_ident: ELFCLASS32 ELFDATA2LSB ELFOSABI_LINUX On a sparc64 system, % elfdump -e /bin/cat | grep ident e_ident: ELFCLASS64 ELFDATA2MSB ELFOSABI_FREEBSD -- Steve