FreeBSD complies with which ABI

Steve Kargl sgk at troutmask.apl.washington.edu
Thu Aug 30 21:30:12 UTC 2012


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


More information about the freebsd-arch mailing list