|
|
DataMuseum.dkPresents historical artifacts from the history of: RC9000 |
This is an automatic "excavation" of a thematic subset of
See our Wiki for more about RC9000 Excavated with: AutoArchaeologist - Free & Open Source Software. |
top - downloadIndex: f
Length: 2689 (0xa81)
Names: »filehdr.5«
└─⟦50656ff4a⟧ Bits:30010538 TX 3.1 Coldstart
└─⟦bbf173f5c⟧ »0004«
└─⟦this⟧ »./usr/man/cat5/filehdr.5«
0x000…020 0a 0a 0a 5f 08 4f 5f 08 6e 5f 08 6c 5f 08 69 5f 08 6e 5f 08 65 20 5f 08 4d 5f 08 61 5f 08 6e 5f ┆ _ O_ n_ l_ i_ n_ e _ M_ a_ n_┆
0x020…040 08 75 5f 08 61 5f 08 6c 20 20 20 20 20 20 20 20 20 20 20 20 20 46 69 6c 65 20 46 6f 72 6d 61 74 ┆ u_ a_ l File Format┆
0x040…060 73 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 66 69 6c 65 68 64 72 28 35 29 0a 0a 0a 0a ┆s filehdr(5) ┆
0x060…080 4e 08 4e 08 4e 08 4e 41 08 41 08 41 08 41 4d 08 4d 08 4d 08 4d 45 08 45 08 45 08 45 0a 20 20 20 ┆N N N NA A A AM M M ME E E E ┆
0x080…0a0 20 20 66 69 6c 65 68 64 72 20 2d 20 66 69 6c 65 20 68 65 61 64 65 72 20 66 6f 72 20 4d 49 50 53 ┆ filehdr - file header for MIPS┆
0x0a0…0c0 20 6f 62 6a 65 63 74 20 66 69 6c 65 73 0a 0a 53 08 53 08 53 08 53 59 08 59 08 59 08 59 4e 08 4e ┆ object files S S S SY Y Y YN N┆
0x0c0…0e0 08 4e 08 4e 54 08 54 08 54 08 54 41 08 41 08 41 08 41 58 08 58 08 58 08 58 0a 20 20 20 20 20 23 ┆ N NT T T TA A A AX X X X #┆
0x0e0…100 08 23 08 23 08 23 69 08 69 08 69 08 69 6e 08 6e 08 6e 08 6e 63 08 63 08 63 08 63 6c 08 6c 08 6c ┆ # # #i i i in n n nc c c cl l l┆
0x100…120 08 6c 75 08 75 08 75 08 75 64 08 64 08 64 08 64 65 08 65 08 65 08 65 20 3c 08 3c 08 3c 08 3c 20 ┆ lu u u ud d d de e e e < < < < ┆
0x120…140 66 08 66 08 66 08 66 69 08 69 08 69 08 69 6c 08 6c 08 6c 08 6c 65 08 65 08 65 08 65 68 08 68 08 ┆f f f fi i i il l l le e e eh h ┆
0x140…160 68 08 68 64 08 64 08 64 08 64 72 08 72 08 72 08 72 2e 08 2e 08 2e 08 2e 68 08 68 08 68 08 68 3e ┆h hd d d dr r r r. . . .h h h h>┆
0x160…180 08 3e 08 3e 08 3e 0a 0a 44 08 44 08 44 08 44 45 08 45 08 45 08 45 53 08 53 08 53 08 53 43 08 43 ┆ > > > D D D DE E E ES S S SC C┆
0x180…1a0 08 43 08 43 52 08 52 08 52 08 52 49 08 49 08 49 08 49 50 08 50 08 50 08 50 54 08 54 08 54 08 54 ┆ C CR R R RI I I IP P P PT T T T┆
0x1a0…1c0 49 08 49 08 49 08 49 4f 08 4f 08 4f 08 4f 4e 08 4e 08 4e 08 4e 0a 20 20 20 20 20 45 76 65 72 79 ┆I I I IO O O ON N N N Every┆
0x1c0…1e0 20 6f 62 6a 65 63 74 20 66 69 6c 65 20 62 65 67 69 6e 73 20 77 69 74 68 20 61 20 32 30 2d 62 79 ┆ object file begins with a 20-by┆
0x1e0…200 74 65 20 68 65 61 64 65 72 2e 20 20 54 68 65 20 66 6f 6c 6c 6f 77 2d 0a 20 20 20 20 20 69 6e 67 ┆te header. The follow- ing┆
0x200…220 20 43 20 73 08 73 08 73 08 73 74 08 74 08 74 08 74 72 08 72 08 72 08 72 75 08 75 08 75 08 75 63 ┆ C s s s st t t tr r r ru u u uc┆
0x220…240 08 63 08 63 08 63 74 08 74 08 74 08 74 20 64 65 63 6c 61 72 61 74 69 6f 6e 20 69 73 20 75 73 65 ┆ c c ct t t t declaration is use┆
0x240…260 64 3a 0a 0a 20 20 20 20 20 20 20 20 20 20 73 74 72 75 63 74 20 20 66 69 6c 65 68 64 72 0a 20 20 ┆d: struct filehdr ┆
0x260…280 20 20 20 20 20 20 20 20 7b 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 75 6e 73 69 ┆ { unsi┆
0x280…2a0 67 6e 65 64 20 73 68 6f 72 74 20 20 66 5f 6d 61 67 69 63 3b 20 20 2f 2a 20 6d 61 67 69 63 20 6e ┆gned short f_magic; /* magic n┆
0x2a0…2c0 75 6d 62 65 72 20 2a 2f 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 75 6e 73 69 67 ┆umber */ unsig┆
0x2c0…2e0 6e 65 64 20 73 68 6f 72 74 20 20 66 5f 6e 73 63 6e 73 3b 20 20 2f 2a 20 6e 75 6d 62 65 72 20 6f ┆ned short f_nscns; /* number o┆
0x2e0…300 66 20 73 65 63 74 69 6f 6e 73 20 2a 2f 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 ┆f sections */ ┆
0x300…320 6c 6f 6e 67 20 20 20 20 20 20 20 20 20 20 20 20 66 5f 74 69 6d 64 61 74 3b 20 2f 2a 20 74 69 6d ┆long f_timdat; /* tim┆
0x320…340 65 20 26 20 64 61 74 65 20 73 74 61 6d 70 20 2a 2f 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 ┆e & date stamp */ ┆
0x340…360 20 20 20 20 6c 6f 6e 67 20 20 20 20 20 20 20 20 20 20 20 20 66 5f 73 79 6d 70 74 72 3b 20 2f 2a ┆ long f_symptr; /*┆
0x360…380 20 66 69 6c 65 20 70 6f 69 6e 74 65 72 20 74 6f 20 73 79 6d 62 6f 6c 69 63 20 68 65 61 64 65 72 ┆ file pointer to symbolic header┆
0x380…3a0 20 2a 2f 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 6c 6f 6e 67 20 20 20 20 20 20 ┆ */ long ┆
0x3a0…3c0 20 20 20 20 20 20 66 5f 6e 73 79 6d 73 3b 20 20 2f 2a 20 73 69 7a 65 6f 66 28 73 79 6d 62 6f 6c ┆ f_nsyms; /* sizeof(symbol┆
0x3c0…3e0 69 63 20 68 65 61 64 65 72 29 20 2a 2f 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 ┆ic header) */ ┆
0x3e0…400 75 6e 73 69 67 6e 65 64 20 73 68 6f 72 74 20 20 66 5f 6f 70 74 68 64 72 3b 20 2f 2a 20 73 69 7a ┆unsigned short f_opthdr; /* siz┆
0x400…420 65 6f 66 28 6f 70 74 69 6f 6e 61 6c 20 68 65 61 64 65 72 29 20 2a 2f 0a 20 20 20 20 20 20 20 20 ┆eof(optional header) */ ┆
0x420…440 20 20 20 20 20 20 20 20 20 20 75 6e 73 69 67 6e 65 64 20 73 68 6f 72 74 20 20 66 5f 66 6c 61 67 ┆ unsigned short f_flag┆
0x440…460 73 3b 20 20 2f 2a 20 66 6c 61 67 73 20 2a 2f 0a 20 20 20 20 20 20 20 20 20 20 7d 3b 0a 0a 20 20 ┆s; /* flags */ }; ┆
0x460…480 20 20 20 5f 08 46 5f 5f 08 73 5f 08 79 5f 08 6d 5f 08 70 5f 08 74 5f 08 72 20 69 73 20 74 68 65 ┆ _ F__ s_ y_ m_ p_ t_ r is the┆
0x480…4a0 20 62 79 74 65 20 6f 66 66 73 65 74 20 69 6e 74 6f 20 74 68 65 20 66 69 6c 65 20 61 74 20 77 68 ┆ byte offset into the file at wh┆
0x4a0…4c0 69 63 68 20 74 68 65 20 73 79 6d 2d 0a 20 20 20 20 20 62 6f 6c 69 63 20 68 65 61 64 65 72 20 63 ┆ich the sym- bolic header c┆
0x4c0…4e0 61 6e 20 62 65 20 66 6f 75 6e 64 2e 20 20 49 74 73 20 76 61 6c 75 65 20 63 61 6e 20 62 65 20 75 ┆an be found. Its value can be u┆
0x4e0…500 73 65 64 20 61 73 20 74 68 65 0a 20 20 20 20 20 6f 66 66 73 65 74 20 69 6e 20 5f 08 66 5f 08 73 ┆sed as the offset in _ f_ s┆
0x500…520 5f 08 65 5f 08 65 5f 08 6b 28 33 53 29 20 74 6f 20 70 6f 73 69 74 69 6f 6e 20 61 6e 20 49 2f 4f ┆_ e_ e_ k(3S) to position an I/O┆
0x520…540 20 73 74 72 65 61 6d 20 74 6f 20 74 68 65 20 73 79 6d 2d 0a 20 20 20 20 20 62 6f 6c 69 63 20 68 ┆ stream to the sym- bolic h┆
0x540…560 65 61 64 65 72 2e 20 20 54 68 65 20 6f 70 74 69 6f 6e 61 6c 20 68 65 61 64 65 72 20 69 73 20 35 ┆eader. The optional header is 5┆
0x560…580 36 2d 62 79 74 65 73 2e 20 20 54 68 65 20 76 61 6c 69 64 0a 20 20 20 20 20 6d 61 67 69 63 20 6e ┆6-bytes. The valid magic n┆
0x580…5a0 75 6d 62 65 72 73 20 61 72 65 20 67 69 76 65 6e 20 62 65 6c 6f 77 3a 0a 0a 20 20 20 20 20 20 20 ┆umbers are given below: ┆
0x5a0…5c0 20 20 20 23 64 65 66 69 6e 65 20 4d 49 50 53 45 42 4d 41 47 49 43 20 20 20 20 20 20 20 30 78 30 ┆ #define MIPSEBMAGIC 0x0┆
0x5c0…5e0 31 36 30 20 20 2f 2a 20 6f 62 6a 65 63 74 73 20 66 6f 72 20 62 69 67 2d 65 6e 64 69 61 6e 20 6d ┆160 /* objects for big-endian m┆
0x5e0…600 61 63 68 69 6e 65 73 20 2a 2f 0a 20 20 20 20 20 20 20 20 20 20 23 64 65 66 69 6e 65 20 4d 49 50 ┆achines */ #define MIP┆
0x600…620 53 45 4c 4d 41 47 49 43 20 20 20 20 20 20 20 30 78 30 31 36 32 20 20 2f 2a 20 6f 62 6a 65 63 74 ┆SELMAGIC 0x0162 /* object┆
0x620…640 73 20 66 6f 72 20 6c 69 74 74 6c 65 2d 65 6e 64 69 61 6e 20 6d 61 63 68 69 6e 65 73 20 2a 2f 0a ┆s for little-endian machines */ ┆
0x640…660 20 20 20 20 20 20 20 20 20 20 23 64 65 66 69 6e 65 20 4d 49 50 53 45 42 55 4d 41 47 49 43 20 20 ┆ #define MIPSEBUMAGIC ┆
0x660…680 20 20 20 20 30 78 30 31 38 30 20 20 2f 2a 20 75 63 6f 64 65 20 6f 62 6a 65 63 74 73 20 66 6f 72 ┆ 0x0180 /* ucode objects for┆
0x680…6a0 20 62 69 67 2d 65 6e 64 69 61 6e 20 6d 61 63 68 69 6e 65 73 20 2a 2f 0a 20 20 20 20 20 20 20 20 ┆ big-endian machines */ ┆
0x6a0…6c0 20 20 23 64 65 66 69 6e 65 20 4d 49 50 53 45 4c 55 4d 41 47 49 43 20 20 20 20 20 20 30 78 30 31 ┆ #define MIPSELUMAGIC 0x01┆
0x6c0…6e0 38 32 20 20 2f 2a 20 75 63 6f 64 65 20 6f 62 6a 65 63 74 73 20 66 6f 72 20 6c 69 74 74 6c 65 2d ┆82 /* ucode objects for little-┆
0x6e0…700 65 6e 64 69 61 6e 20 6d 61 63 68 69 6e 65 73 20 2a 2f 0a 0a 20 20 20 20 20 4f 62 6a 65 63 74 20 ┆endian machines */ Object ┆
0x700…720 66 69 6c 65 73 20 63 61 6e 20 62 65 20 6c 6f 61 64 65 64 20 61 6e 64 20 65 78 61 6d 69 6e 65 64 ┆files can be loaded and examined┆
0x720…740 20 6f 6e 20 6d 61 63 68 69 6e 65 73 20 64 69 66 66 65 72 2d 0a 20 20 20 20 20 69 6e 67 20 66 72 ┆ on machines differ- ing fr┆
0x740…760 6f 6d 20 74 68 65 20 6f 62 6a 65 63 74 27 73 20 74 61 72 67 65 74 20 62 79 74 65 20 6f 72 64 65 ┆om the object's target byte orde┆
0x760…780 72 69 6e 67 2e 20 20 54 68 65 72 65 66 6f 72 65 2c 20 66 6f 72 0a 20 20 20 20 20 6f 62 6a 65 63 ┆ring. Therefore, for objec┆
0x780…7a0 74 20 66 69 6c 65 20 6d 61 67 69 63 20 6e 75 6d 62 65 72 73 2c 20 74 68 65 20 62 79 74 65 20 73 ┆t file magic numbers, the byte s┆
0x7a0…7c0 77 61 70 70 65 64 20 76 61 6c 75 65 73 20 68 61 76 65 0a 20 20 20 20 20 64 65 66 69 6e 65 20 63 ┆wapped values have define c┆
0x7c0…7e0 6f 6e 73 74 61 6e 74 73 20 61 73 73 6f 63 69 61 74 65 64 20 77 69 74 68 20 74 68 65 6d 3a 0a 0a ┆onstants associated with them: ┆
0x7e0…800 20 20 20 20 20 20 20 20 20 20 23 64 65 66 69 6e 65 20 53 4d 49 50 53 45 42 4d 41 47 49 43 20 20 ┆ #define SMIPSEBMAGIC ┆
0x800…820 20 20 20 20 30 78 36 30 30 31 0a 20 20 20 20 20 20 20 20 20 20 23 64 65 66 69 6e 65 20 53 4d 49 ┆ 0x6001 #define SMI┆
0x820…840 50 53 45 4c 4d 41 47 49 43 20 20 20 20 20 20 30 78 36 32 30 31 0a 0a 20 20 20 20 20 54 68 65 20 ┆PSELMAGIC 0x6201 The ┆
0x840…860 76 61 6c 75 65 20 69 6e 20 5f 08 66 5f 5f 08 74 5f 08 69 5f 08 6d 5f 08 64 5f 08 61 5f 08 74 20 ┆value in _ f__ t_ i_ m_ d_ a_ t ┆
0x860…880 69 73 20 6f 62 74 61 69 6e 65 64 20 66 72 6f 6d 20 74 68 65 20 5f 08 74 5f 08 69 5f 08 6d 5f 08 ┆is obtained from the _ t_ i_ m_ ┆
0x880…8a0 65 28 33 29 20 66 75 6e 63 74 69 6f 6e 2e 0a 20 20 20 20 20 46 6c 61 67 20 62 69 74 73 20 75 73 ┆e(3) function. Flag bits us┆
0x8a0…8c0 65 64 20 69 6e 20 6f 62 6a 65 63 74 20 66 69 6c 65 73 20 61 72 65 3a 0a 0a 20 20 20 20 20 20 20 ┆ed in object files are: ┆
0x8c0…8e0 20 20 20 23 64 65 66 69 6e 65 20 46 5f 52 45 4c 46 4c 47 20 20 20 20 20 20 20 20 30 30 30 30 30 ┆ #define F_RELFLG 00000┆
0x8e0…900 30 31 20 20 20 2f 2a 20 72 65 6c 6f 63 61 74 69 6f 6e 20 65 6e 74 72 69 65 73 20 73 74 72 69 70 ┆01 /* relocation entries strip┆
0x900…920 70 65 64 20 2a 2f 0a 20 20 20 20 20 20 20 20 20 20 23 64 65 66 69 6e 65 20 46 5f 45 58 45 43 20 ┆ped */ #define F_EXEC ┆
0x920…940 20 30 30 30 30 30 30 32 20 2f 2a 20 66 69 6c 65 20 69 73 20 65 78 65 63 75 74 61 62 6c 65 20 2a ┆ 0000002 /* file is executable *┆
0x940…960 2f 0a 20 20 20 20 20 20 20 20 20 20 23 64 65 66 69 6e 65 20 46 5f 4c 4e 4e 4f 20 20 30 30 30 30 ┆/ #define F_LNNO 0000┆
0x960…980 30 30 34 20 2f 2a 20 6c 69 6e 65 20 6e 75 6d 62 65 72 73 20 73 74 72 69 70 70 65 64 20 2a 2f 0a ┆004 /* line numbers stripped */ ┆
0x980…9a0 20 20 20 20 20 20 20 20 20 20 23 64 65 66 69 6e 65 20 46 5f 4c 53 59 4d 53 20 30 30 30 30 30 31 ┆ #define F_LSYMS 000001┆
0x9a0…9c0 30 20 2f 2a 20 6c 6f 63 61 6c 20 73 79 6d 62 6f 6c 73 20 73 74 72 69 70 70 65 64 20 2a 2f 0a 0a ┆0 /* local symbols stripped */ ┆
0x9c0…9e0 53 08 53 08 53 08 53 45 08 45 08 45 08 45 45 08 45 08 45 08 45 20 41 08 41 08 41 08 41 4c 08 4c ┆S S S SE E E EE E E E A A A AL L┆
0x9e0…a00 08 4c 08 4c 53 08 53 08 53 08 53 4f 08 4f 08 4f 08 4f 0a 20 20 20 20 20 4c 69 62 72 61 72 79 20 ┆ L LS S S SO O O O Library ┆
0xa00…a20 46 75 6e 63 74 69 6f 6e 73 20 28 33 29 3a 20 66 73 65 65 6b 2c 20 74 69 6d 65 0a 20 20 20 20 20 ┆Functions (3): fseek, time ┆
0xa20…a40 46 69 6c 65 20 46 6f 72 6d 61 74 73 20 28 35 29 3a 20 61 2e 6f 75 74 0a 0a 4d 61 72 63 68 20 31 ┆File Formats (5): a.out March 1┆
0xa40…a60 39 38 39 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 ┆989 ┆
0xa60…a80 20 54 58 20 50 72 6f 67 72 61 6d 6d 65 72 27 73 20 52 65 66 65 72 65 6e 63 65 0a 0a 0a 0a 0a 0a ┆ TX Programmer's Reference ┆
0xa80…a81 0a ┆ ┆