84d9c625bf
- Fix for possible unset uid/gid in toproto - Fix for default mtree style - Update libelf - Importing libexecinfo - Resynchronize GCC, mpc, gmp, mpfr - build.sh: Replace params with show-params. This has been done as the make target has been renamed in the same way, while a new target named params has been added. This new target generates a file containing all the parameters, instead of printing it on the console. - Update test48 with new etc/services (Fix by Ben Gras <ben@minix3.org) get getservbyport() out of the inner loop Change-Id: Ie6ad5226fa2621ff9f0dee8782ea48f9443d2091
214 lines
7.2 KiB
Text
214 lines
7.2 KiB
Text
|
|
#------------------------------------------------------------
|
|
# $File: mach,v 1.17 2013/03/07 02:22:52 christos Exp $
|
|
# Mach has two magic numbers, 0xcafebabe and 0xfeedface.
|
|
# Unfortunately the first, cafebabe, is shared with
|
|
# Java ByteCode, so they are both handled in the file "cafebabe".
|
|
# The "feedface" ones are handled herein.
|
|
#------------------------------------------------------------
|
|
# if set, it's for the 64-bit version of the architecture
|
|
# yes, this is separate from the low-order magic number bit
|
|
# it's also separate from the "64-bit libraries" bit in the
|
|
# upper 8 bits of the CPU subtype
|
|
|
|
0 name mach-o-cpu
|
|
>0 belong&0x01000000 0
|
|
#
|
|
# 32-bit ABIs.
|
|
#
|
|
# 1 vax
|
|
>>0 belong&0x00ffffff 1
|
|
>>>4 belong&0x00ffffff 0 vax
|
|
>>>4 belong&0x00ffffff 1 vax11/780
|
|
>>>4 belong&0x00ffffff 2 vax11/785
|
|
>>>4 belong&0x00ffffff 3 vax11/750
|
|
>>>4 belong&0x00ffffff 4 vax11/730
|
|
>>>4 belong&0x00ffffff 5 uvaxI
|
|
>>>4 belong&0x00ffffff 6 uvaxII
|
|
>>>4 belong&0x00ffffff 7 vax8200
|
|
>>>4 belong&0x00ffffff 8 vax8500
|
|
>>>4 belong&0x00ffffff 9 vax8600
|
|
>>>4 belong&0x00ffffff 10 vax8650
|
|
>>>4 belong&0x00ffffff 11 vax8800
|
|
>>>4 belong&0x00ffffff 12 uvaxIII
|
|
>>>4 belong&0x00ffffff >12 vax subarchitecture=%ld
|
|
>>0 belong&0x00ffffff 2 romp
|
|
>>0 belong&0x00ffffff 3 architecture=3
|
|
>>0 belong&0x00ffffff 4 ns32032
|
|
>>0 belong&0x00ffffff 5 ns32332
|
|
>>0 belong&0x00ffffff 6 m68k
|
|
# 7 x86
|
|
>>0 belong&0x00ffffff 7
|
|
>>>4 belong&0x0000000f 3 i386
|
|
>>>4 belong&0x0000000f 4 i486
|
|
>>>>4 belong&0x00fffff0 0
|
|
>>>>4 belong&0x00fffff0 0x80 \bsx
|
|
>>>4 belong&0x0000000f 5 i586
|
|
>>>4 belong&0x0000000f 6
|
|
>>>>4 belong&0x00fffff0 0 p6
|
|
>>>>4 belong&0x00fffff0 0x10 pentium_pro
|
|
>>>>4 belong&0x00fffff0 0x20 pentium_2_m0x20
|
|
>>>>4 belong&0x00fffff0 0x30 pentium_2_m3
|
|
>>>>4 belong&0x00fffff0 0x40 pentium_2_m0x40
|
|
>>>>4 belong&0x00fffff0 0x50 pentium_2_m5
|
|
>>>>4 belong&0x00fffff0 >0x50 pentium_2_m0x%lx
|
|
>>>4 belong&0x0000000f 7 celeron
|
|
>>>>4 belong&0x00fffff0 0x00 \b_m0x%lx
|
|
>>>>4 belong&0x00fffff0 0x10 \b_m0x%lx
|
|
>>>>4 belong&0x00fffff0 0x20 \b_m0x%lx
|
|
>>>>4 belong&0x00fffff0 0x30 \b_m0x%lx
|
|
>>>>4 belong&0x00fffff0 0x40 \b_m0x%lx
|
|
>>>>4 belong&0x00fffff0 0x50 \b_m0x%lx
|
|
>>>>4 belong&0x00fffff0 0x60
|
|
>>>>4 belong&0x00fffff0 0x70 \b_mobile
|
|
>>>>4 belong&0x00fffff0 >0x70 \b_m0x%lx
|
|
>>>4 belong&0x0000000f 8 pentium_3
|
|
>>>>4 belong&0x00fffff0 0x00
|
|
>>>>4 belong&0x00fffff0 0x10 \b_m
|
|
>>>>4 belong&0x00fffff0 0x20 \b_xeon
|
|
>>>>4 belong&0x00fffff0 >0x20 \b_m0x%lx
|
|
>>>4 belong&0x0000000f 9 pentiumM
|
|
>>>>4 belong&0x00fffff0 0x00
|
|
>>>>4 belong&0x00fffff0 >0x00 \b_m0x%lx
|
|
>>>4 belong&0x0000000f 10 pentium_4
|
|
>>>>4 belong&0x00fffff0 0x00
|
|
>>>>4 belong&0x00fffff0 0x10 \b_m
|
|
>>>>4 belong&0x00fffff0 >0x10 \b_m0x%lx
|
|
>>>4 belong&0x0000000f 11 itanium
|
|
>>>>4 belong&0x00fffff0 0x00
|
|
>>>>4 belong&0x00fffff0 0x10 \b_2
|
|
>>>>4 belong&0x00fffff0 >0x10 \b_m0x%lx
|
|
>>>4 belong&0x0000000f 12 xeon
|
|
>>>>4 belong&0x00fffff0 0x00
|
|
>>>>4 belong&0x00fffff0 0x10 \b_mp
|
|
>>>>4 belong&0x00fffff0 >0x10 \b_m0x%lx
|
|
>>>4 belong&0x0000000f >12 ia32 family=%ld
|
|
>>>>4 belong&0x00fffff0 0x00
|
|
>>>>4 belong&0x00fffff0 >0x00 model=%lx
|
|
>>0 belong&0x00ffffff 8 mips
|
|
>>>4 belong&0x00ffffff 1 R2300
|
|
>>>4 belong&0x00ffffff 2 R2600
|
|
>>>4 belong&0x00ffffff 3 R2800
|
|
>>>4 belong&0x00ffffff 4 R2000a
|
|
>>>4 belong&0x00ffffff 5 R2000
|
|
>>>4 belong&0x00ffffff 6 R3000a
|
|
>>>4 belong&0x00ffffff 7 R3000
|
|
>>>4 belong&0x00ffffff >7 subarchitecture=%ld
|
|
>>0 belong&0x00ffffff 9 ns32532
|
|
>>0 belong&0x00ffffff 10 mc98000
|
|
>>0 belong&0x00ffffff 11 hppa
|
|
>>>4 belong&0x00ffffff 0 7100
|
|
>>>4 belong&0x00ffffff 1 7100LC
|
|
>>>4 belong&0x00ffffff >1 subarchitecture=%ld
|
|
>>0 belong&0x00ffffff 12 arm
|
|
>>>4 belong&0x00ffffff 0
|
|
>>>4 belong&0x00ffffff 1 subarchitecture=%ld
|
|
>>>4 belong&0x00ffffff 2 subarchitecture=%ld
|
|
>>>4 belong&0x00ffffff 3 subarchitecture=%ld
|
|
>>>4 belong&0x00ffffff 4 subarchitecture=%ld
|
|
>>>4 belong&0x00ffffff 5 \b_v4t
|
|
>>>4 belong&0x00ffffff 6 \b_v6
|
|
>>>4 belong&0x00ffffff 7 \b_v5tej
|
|
>>>4 belong&0x00ffffff 8 \b_xscale
|
|
>>>4 belong&0x00ffffff 9 \b_v7
|
|
>>>4 belong&0x00ffffff 10 \b_v7f
|
|
>>>4 belong&0x00ffffff 11 subarchitecture=%ld
|
|
>>>4 belong&0x00ffffff 12 \b_v7k
|
|
>>>4 belong&0x00ffffff >12 subarchitecture=%ld
|
|
# 13 m88k
|
|
>>0 belong&0x00ffffff 13
|
|
>>>4 belong&0x00ffffff 0 mc88000
|
|
>>>4 belong&0x00ffffff 1 mc88100
|
|
>>>4 belong&0x00ffffff 2 mc88110
|
|
>>>4 belong&0x00ffffff >2 mc88000 subarchitecture=%ld
|
|
>>0 belong&0x00ffffff 14 sparc
|
|
>>0 belong&0x00ffffff 15 i860g
|
|
>>0 belong&0x00ffffff 16 alpha
|
|
>>0 belong&0x00ffffff 17 rs6000
|
|
>>0 belong&0x00ffffff 18 ppc
|
|
>>>4 belong&0x00ffffff 0
|
|
>>>4 belong&0x00ffffff 1 \b_601
|
|
>>>4 belong&0x00ffffff 2 \b_602
|
|
>>>4 belong&0x00ffffff 3 \b_603
|
|
>>>4 belong&0x00ffffff 4 \b_603e
|
|
>>>4 belong&0x00ffffff 5 \b_603ev
|
|
>>>4 belong&0x00ffffff 6 \b_604
|
|
>>>4 belong&0x00ffffff 7 \b_604e
|
|
>>>4 belong&0x00ffffff 8 \b_620
|
|
>>>4 belong&0x00ffffff 9 \b_650
|
|
>>>4 belong&0x00ffffff 10 \b_7400
|
|
>>>4 belong&0x00ffffff 11 \b_7450
|
|
>>>4 belong&0x00ffffff 100 \b_970
|
|
>>>4 belong&0x00ffffff >100 subarchitecture=%ld
|
|
>>0 belong&0x00ffffff >18 architecture=%ld
|
|
>0 belong&0x01000000 0x01000000
|
|
#
|
|
# 64-bit ABIs.
|
|
#
|
|
>>0 belong&0x00ffffff 0 64-bit architecture=%ld
|
|
>>0 belong&0x00ffffff 1 64-bit architecture=%ld
|
|
>>0 belong&0x00ffffff 2 64-bit architecture=%ld
|
|
>>0 belong&0x00ffffff 3 64-bit architecture=%ld
|
|
>>0 belong&0x00ffffff 4 64-bit architecture=%ld
|
|
>>0 belong&0x00ffffff 5 64-bit architecture=%ld
|
|
>>0 belong&0x00ffffff 6 64-bit architecture=%ld
|
|
>>0 belong&0x00ffffff 7 x86_64
|
|
>>>4 belong&0x00ffffff 0 subarchitecture=%ld
|
|
>>>4 belong&0x00ffffff 1 subarchitecture=%ld
|
|
>>>4 belong&0x00ffffff 2 subarchitecture=%ld
|
|
>>>4 belong&0x00ffffff 3
|
|
>>>4 belong&0x00ffffff 4 \b_arch1
|
|
>>>4 belong&0x00ffffff >4 subarchitecture=%ld
|
|
>>0 belong&0x00ffffff 8 64-bit architecture=%ld
|
|
>>0 belong&0x00ffffff 9 64-bit architecture=%ld
|
|
>>0 belong&0x00ffffff 10 64-bit architecture=%ld
|
|
>>0 belong&0x00ffffff 11 64-bit architecture=%ld
|
|
>>0 belong&0x00ffffff 12 64-bit architecture=%ld
|
|
>>0 belong&0x00ffffff 13 64-bit architecture=%ld
|
|
>>0 belong&0x00ffffff 14 64-bit architecture=%ld
|
|
>>0 belong&0x00ffffff 15 64-bit architecture=%ld
|
|
>>0 belong&0x00ffffff 16 64-bit architecture=%ld
|
|
>>0 belong&0x00ffffff 17 64-bit architecture=%ld
|
|
>>0 belong&0x00ffffff 18 ppc64
|
|
>>>4 belong&0x00ffffff 0
|
|
>>>4 belong&0x00ffffff 1 \b_601
|
|
>>>4 belong&0x00ffffff 2 \b_602
|
|
>>>4 belong&0x00ffffff 3 \b_603
|
|
>>>4 belong&0x00ffffff 4 \b_603e
|
|
>>>4 belong&0x00ffffff 5 \b_603ev
|
|
>>>4 belong&0x00ffffff 6 \b_604
|
|
>>>4 belong&0x00ffffff 7 \b_604e
|
|
>>>4 belong&0x00ffffff 8 \b_620
|
|
>>>4 belong&0x00ffffff 9 \b_650
|
|
>>>4 belong&0x00ffffff 10 \b_7400
|
|
>>>4 belong&0x00ffffff 11 \b_7450
|
|
>>>4 belong&0x00ffffff 100 \b_970
|
|
>>>4 belong&0x00ffffff >100 subarchitecture=%ld
|
|
>>0 belong&0x00ffffff >18 64-bit architecture=%ld
|
|
|
|
|
|
0 name mach-o-be
|
|
>0 byte 0xcf 64-bit
|
|
>4 use mach-o-cpu
|
|
>12 belong 1 object
|
|
>12 belong 2 executable
|
|
>12 belong 3 fixed virtual memory shared library
|
|
>12 belong 4 core
|
|
>12 belong 5 preload executable
|
|
>12 belong 6 dynamically linked shared library
|
|
>12 belong 7 dynamic linker
|
|
>12 belong 8 bundle
|
|
>12 belong 9 dynamically linked shared library stub
|
|
>12 belong 10 dSYM companion file
|
|
>12 belong 11 kext bundle
|
|
>12 belong >11
|
|
>>12 belong x filetype=%ld
|
|
|
|
#
|
|
0 lelong&0xfffffffe 0xfeedface Mach-O
|
|
!:strength +1
|
|
>0 use \^mach-o-be
|
|
|
|
0 belong&0xfffffffe 0xfeedface Mach-O
|
|
!:strength +1
|
|
>0 use mach-o-be
|