Date: Thu, 30 Aug 2012 14:30:04 -0700 From: Steve Kargl <sgk@troutmask.apl.washington.edu> To: asp imho <asp654@gmail.com> Cc: freebsd-arch@freebsd.org Subject: Re: FreeBSD complies with which ABI Message-ID: <20120830213004.GA81386@troutmask.apl.washington.edu> In-Reply-To: <CALGwOv%2By-0cJu2xmUVZCT4LR91v_WP4sNS3fmtxhN7v5-KH1Dw@mail.gmail.com> References: <CALGwOv%2By-0cJu2xmUVZCT4LR91v_WP4sNS3fmtxhN7v5-KH1Dw@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20120830213004.GA81386>
