|
|
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: r
Length: 5005 (0x138d)
Names: »reloc.5«
└─⟦50656ff4a⟧ Bits:30010538 TX 3.1 Coldstart
└─⟦bbf173f5c⟧ »0004«
└─⟦this⟧ »./usr/man/cat5/reloc.5«
0x0000…0020 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_┆
0x0020…0040 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┆
0x0040…0060 73 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 72 65 6c 6f 63 28 35 29 0a 0a 0a 0a ┆s reloc(5) ┆
0x0060…0080 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 ┆
0x0080…00a0 20 20 72 65 6c 6f 63 20 2d 20 72 65 6c 6f 63 61 74 69 6f 6e 20 69 6e 66 6f 72 6d 61 74 69 6f 6e ┆ reloc - relocation information┆
0x00a0…00c0 20 66 6f 72 20 61 20 4d 49 50 53 20 6f 62 6a 65 63 74 20 66 69 6c 65 0a 0a 53 08 53 08 53 08 53 ┆ for a MIPS object file S S S S┆
0x00c0…00e0 59 08 59 08 59 08 59 4e 08 4e 08 4e 08 4e 54 08 54 08 54 08 54 41 08 41 08 41 08 41 58 08 58 08 ┆Y Y Y YN N N NT T T TA A A AX X ┆
0x00e0…0100 58 08 58 0a 20 20 20 20 20 23 08 23 08 23 08 23 69 08 69 08 69 08 69 6e 08 6e 08 6e 08 6e 63 08 ┆X X # # # #i i i in n n nc ┆
0x0100…0120 63 08 63 08 63 6c 08 6c 08 6c 08 6c 75 08 75 08 75 08 75 64 08 64 08 64 08 64 65 08 65 08 65 08 ┆c c cl l l lu u u ud d d de e e ┆
0x0120…0140 65 20 20 3c 08 3c 08 3c 08 3c 72 08 72 08 72 08 72 65 08 65 08 65 08 65 6c 08 6c 08 6c 08 6c 6f ┆e < < < <r r r re e e el l l lo┆
0x0140…0160 08 6f 08 6f 08 6f 63 08 63 08 63 08 63 2e 08 2e 08 2e 08 2e 68 08 68 08 68 08 68 3e 08 3e 08 3e ┆ o o oc c c c. . . .h h h h> > >┆
0x0160…0180 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 08 43 08 43 ┆ > D D D DE E E ES S S SC C C C┆
0x0180…01a0 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 49 08 49 08 ┆R R R RI I I IP P P PT T T TI I ┆
0x01a0…01c0 49 08 49 4f 08 4f 08 4f 08 4f 4e 08 4e 08 4e 08 4e 0a 20 20 20 20 20 4f 62 6a 65 63 74 20 66 69 ┆I IO O O ON N N N Object fi┆
0x01c0…01e0 6c 65 73 20 68 61 76 65 20 6f 6e 65 20 72 65 6c 6f 63 61 74 69 6f 6e 20 65 6e 74 72 79 20 66 6f ┆les have one relocation entry fo┆
0x01e0…0200 72 20 65 61 63 68 20 72 65 6c 6f 63 61 74 61 62 6c 65 0a 20 20 20 20 20 72 65 66 65 72 65 6e 63 ┆r each relocatable referenc┆
0x0200…0220 65 20 69 6e 20 74 68 65 20 74 65 78 74 20 6f 72 20 64 61 74 61 2e 20 20 49 66 20 72 65 6c 6f 63 ┆e in the text or data. If reloc┆
0x0220…0240 61 74 69 6f 6e 20 69 6e 66 6f 72 6d 61 74 69 6f 6e 20 69 73 0a 20 20 20 20 20 70 72 65 73 65 6e ┆ation information is presen┆
0x0240…0260 74 2c 20 69 74 20 77 69 6c 6c 20 62 65 20 69 6e 20 74 68 65 20 66 6f 6c 6c 6f 77 69 6e 67 20 66 ┆t, it will be in the following f┆
0x0260…0280 6f 72 6d 61 74 2e 0a 0a 20 20 20 20 20 73 74 72 75 63 74 20 20 20 72 65 6c 6f 63 0a 20 20 20 20 ┆ormat. struct reloc ┆
0x0280…02a0 20 7b 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 6c 6f 6e 67 20 20 20 20 20 20 20 20 72 5f 76 ┆ { long r_v┆
0x02a0…02c0 61 64 64 72 20 3b 20 20 20 20 20 20 20 2f 2a 20 28 76 69 72 74 75 61 6c 29 20 61 64 64 72 65 73 ┆addr ; /* (virtual) addres┆
0x02c0…02e0 73 20 6f 66 20 72 65 66 65 72 65 6e 63 65 20 2a 2f 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 ┆s of reference */ ┆
0x02e0…0300 6c 6f 6e 67 20 20 20 20 20 20 20 20 72 5f 73 79 6d 6e 64 78 20 3b 20 20 20 20 20 20 2f 2a 20 69 ┆long r_symndx ; /* i┆
0x0300…0320 6e 64 65 78 20 69 6e 74 6f 20 73 79 6d 62 6f 6c 20 74 61 62 6c 65 20 2a 2f 0a 20 20 20 20 20 20 ┆ndex into symbol table */ ┆
0x0320…0340 20 20 20 20 20 20 20 20 75 73 68 6f 72 74 20 20 20 20 20 20 72 5f 74 79 70 65 20 3b 20 20 20 20 ┆ ushort r_type ; ┆
0x0340…0360 20 20 20 20 2f 2a 20 72 65 6c 6f 63 61 74 69 6f 6e 20 74 79 70 65 20 2a 2f 0a 20 20 20 20 20 20 ┆ /* relocation type */ ┆
0x0360…0380 20 20 20 20 20 20 20 20 75 6e 73 69 67 6e 65 64 20 20 20 20 72 5f 73 79 6d 6e 64 78 3a 32 34 2c ┆ unsigned r_symndx:24,┆
0x0380…03a0 20 20 20 20 2f 2a 20 69 6e 64 65 78 20 69 6e 74 6f 20 73 79 6d 62 6f 6c 20 74 61 62 6c 65 20 2a ┆ /* index into symbol table *┆
0x03a0…03c0 2f 0a 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 72 5f 72 65 ┆/ r_re┆
0x03c0…03e0 73 65 72 76 65 64 3a 33 2c 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 ┆served:3, ┆
0x03e0…0400 20 20 20 20 72 5f 74 79 70 65 3a 34 2c 20 20 20 20 20 20 20 2f 2a 20 72 65 6c 6f 63 61 74 69 6f ┆ r_type:4, /* relocatio┆
0x0400…0420 6e 20 74 79 70 65 20 2a 2f 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 ┆n type */ ┆
0x0420…0440 20 20 20 20 72 5f 65 78 74 65 72 6e 3a 31 3b 20 20 20 20 20 2f 2a 20 69 66 20 31 20 73 79 6d 6e ┆ r_extern:1; /* if 1 symn┆
0x0440…0460 64 78 20 69 73 20 61 6e 20 69 6e 64 65 78 20 69 6e 74 6f 20 74 68 65 20 65 78 74 65 72 6e 61 6c ┆dx is an index into the external┆
0x0460…0480 0a 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 20 20 ┆ ┆
0x0480…04a0 20 20 20 20 20 20 20 20 20 20 20 20 20 20 73 79 6d 62 6f 6c 20 74 61 62 6c 65 2c 20 65 6c 73 65 ┆ symbol table, else┆
0x04a0…04c0 20 73 79 6d 6e 64 78 20 69 73 20 61 20 73 65 63 74 69 6f 6e 20 23 20 2a 2f 0a 20 20 20 20 20 7d ┆ symndx is a section # */ }┆
0x04c0…04e0 20 3b 0a 0a 20 20 20 20 20 2f 2a 20 52 65 6c 6f 63 61 74 69 6f 6e 20 74 79 70 65 73 20 2a 2f 0a ┆ ; /* Relocation types */ ┆
0x04e0…0500 20 20 20 20 20 23 64 65 66 69 6e 65 20 20 52 5f 41 42 53 20 20 20 20 20 20 20 30 0a 20 20 20 20 ┆ #define R_ABS 0 ┆
0x0500…0520 20 23 64 65 66 69 6e 65 20 20 52 5f 52 45 46 48 41 4c 46 20 20 20 31 0a 20 20 20 20 20 23 64 65 ┆ #define R_REFHALF 1 #de┆
0x0520…0540 66 69 6e 65 20 20 52 5f 52 45 46 57 4f 52 44 20 20 20 32 0a 20 20 20 20 20 23 64 65 66 69 6e 65 ┆fine R_REFWORD 2 #define┆
0x0540…0560 20 20 52 5f 4a 4d 50 41 44 44 52 20 20 20 33 0a 20 20 20 20 20 23 64 65 66 69 6e 65 20 20 52 5f ┆ R_JMPADDR 3 #define R_┆
0x0560…0580 52 45 46 48 49 20 20 20 20 20 34 0a 20 20 20 20 20 23 64 65 66 69 6e 65 20 20 52 5f 52 45 46 4c ┆REFHI 4 #define R_REFL┆
0x0580…05a0 4f 20 20 20 20 20 35 0a 20 20 20 20 20 23 64 65 66 69 6e 65 20 20 52 5f 47 50 52 45 4c 20 20 20 ┆O 5 #define R_GPREL ┆
0x05a0…05c0 20 20 36 0a 20 20 20 20 20 23 64 65 66 69 6e 65 20 20 52 5f 4c 49 54 45 52 41 4c 20 20 20 37 0a ┆ 6 #define R_LITERAL 7 ┆
0x05c0…05e0 0a 20 20 20 20 20 2f 2a 20 53 65 63 74 69 6f 6e 20 6e 75 6d 62 65 72 73 20 2a 2f 0a 20 20 20 20 ┆ /* Section numbers */ ┆
0x05e0…0600 20 23 64 65 66 69 6e 65 20 20 52 5f 53 4e 5f 4e 55 4c 4c 20 20 20 30 0a 20 20 20 20 20 23 64 65 ┆ #define R_SN_NULL 0 #de┆
0x0600…0620 66 69 6e 65 20 20 52 5f 53 4e 5f 54 45 58 54 20 20 20 31 0a 20 20 20 20 20 23 64 65 66 69 6e 65 ┆fine R_SN_TEXT 1 #define┆
0x0620…0640 20 20 52 5f 53 4e 5f 52 44 41 54 41 20 20 32 0a 20 20 20 20 20 23 64 65 66 69 6e 65 20 20 52 5f ┆ R_SN_RDATA 2 #define R_┆
0x0640…0660 53 4e 5f 44 41 54 41 20 20 20 33 0a 20 20 20 20 20 23 64 65 66 69 6e 65 20 20 52 5f 53 4e 5f 53 ┆SN_DATA 3 #define R_SN_S┆
0x0660…0680 44 41 54 41 20 20 34 0a 20 20 20 20 20 23 64 65 66 69 6e 65 20 20 52 5f 53 4e 5f 53 42 53 53 20 ┆DATA 4 #define R_SN_SBSS ┆
0x0680…06a0 20 20 35 0a 20 20 20 20 20 23 64 65 66 69 6e 65 20 20 52 5f 53 4e 5f 42 53 53 20 20 20 20 36 0a ┆ 5 #define R_SN_BSS 6 ┆
0x06a0…06c0 20 20 20 20 20 23 64 65 66 69 6e 65 20 20 52 5f 53 4e 5f 49 4e 49 54 20 20 20 37 0a 20 20 20 20 ┆ #define R_SN_INIT 7 ┆
0x06c0…06e0 20 23 64 65 66 69 6e 65 20 20 52 5f 53 4e 5f 4c 49 54 38 20 20 20 38 0a 20 20 20 20 20 23 64 65 ┆ #define R_SN_LIT8 8 #de┆
0x06e0…0700 66 69 6e 65 20 20 52 5f 53 4e 5f 4c 49 54 34 20 20 20 39 0a 0a 20 20 20 20 20 54 68 65 20 6c 69 ┆fine R_SN_LIT4 9 The li┆
0x0700…0720 6e 6b 20 65 64 69 74 6f 72 20 72 65 61 64 73 20 65 61 63 68 20 69 6e 70 75 74 20 73 65 63 74 69 ┆nk editor reads each input secti┆
0x0720…0740 6f 6e 20 61 6e 64 20 70 65 72 66 6f 72 6d 73 20 72 65 6c 6f 2d 0a 20 20 20 20 20 63 61 74 69 6f ┆on and performs relo- catio┆
0x0740…0760 6e 2e 20 20 54 68 65 20 72 65 6c 6f 63 61 74 69 6f 6e 20 65 6e 74 72 69 65 73 20 64 69 72 65 63 ┆n. The relocation entries direc┆
0x0760…0780 74 20 68 6f 77 20 72 65 66 65 72 65 6e 63 65 73 20 66 6f 75 6e 64 0a 20 20 20 20 20 77 69 74 68 ┆t how references found with┆
0x0780…07a0 69 6e 20 74 68 65 20 69 6e 70 75 74 20 73 65 63 74 69 6f 6e 20 61 72 65 20 74 72 65 61 74 65 64 ┆in the input section are treated┆
0x07a0…07c0 2e 0a 0a 20 20 20 20 20 49 66 20 5f 08 72 5f 5f 08 65 5f 08 78 5f 08 74 5f 08 65 5f 08 72 5f 08 ┆. If _ r__ e_ x_ t_ e_ r_ ┆
0x07c0…07e0 6e 20 69 73 20 7a 65 72 6f 20 74 68 65 6e 20 69 74 20 69 73 20 61 20 6c 6f 63 61 6c 20 72 65 6c ┆n is zero then it is a local rel┆
0x07e0…0800 6f 63 61 74 69 6f 6e 20 65 6e 74 72 79 20 61 6e 64 0a 20 20 20 20 20 74 68 65 6e 20 5f 08 72 5f ┆ocation entry and then _ r_┆
0x0800…0820 5f 08 73 5f 08 79 5f 08 6d 5f 08 6e 5f 08 64 5f 08 65 5f 08 78 20 69 73 20 61 20 73 65 63 74 69 ┆_ s_ y_ m_ n_ d_ e_ x is a secti┆
0x0820…0840 6f 6e 20 6e 75 6d 62 65 72 20 28 52 5f 53 4e 5f 2a 29 2e 20 20 46 6f 72 20 74 68 65 73 65 0a 20 ┆on number (R_SN_*). For these ┆
0x0840…0860 20 20 20 20 65 6e 74 72 69 65 73 20 74 68 65 20 73 74 61 72 74 69 6e 67 20 61 64 64 72 65 73 73 ┆ entries the starting address┆
0x0860…0880 20 66 6f 72 20 74 68 65 20 73 65 63 74 69 6f 6e 20 72 65 66 65 72 65 6e 63 65 64 20 62 79 0a 20 ┆ for the section referenced by ┆
0x0880…08a0 20 20 20 20 74 68 65 20 73 65 63 74 69 6f 6e 20 6e 75 6d 62 65 72 20 69 73 20 75 73 65 64 20 69 ┆ the section number is used i┆
0x08a0…08c0 6e 20 70 6c 61 63 65 20 6f 66 20 61 6e 20 65 78 74 65 72 6e 61 6c 20 73 79 6d 62 6f 6c 0a 20 20 ┆n place of an external symbol ┆
0x08c0…08e0 20 20 20 74 61 62 6c 65 20 65 6e 74 72 79 27 73 20 76 61 6c 75 65 2e 20 20 54 68 65 20 61 73 73 ┆ table entry's value. The ass┆
0x08e0…0900 65 6d 62 6c 65 72 20 61 6e 64 20 6c 6f 61 64 65 72 20 61 6c 77 61 79 73 20 75 73 65 0a 20 20 20 ┆embler and loader always use ┆
0x0900…0920 20 20 6c 6f 63 61 6c 20 72 65 6c 6f 63 61 74 69 6f 6e 20 65 6e 74 72 69 65 73 20 69 66 20 74 68 ┆ local relocation entries if th┆
0x0920…0940 65 20 69 74 65 6d 20 74 6f 20 62 65 20 72 65 6c 6f 63 61 74 65 64 20 69 73 0a 20 20 20 20 20 64 ┆e item to be relocated is d┆
0x0940…0960 65 66 69 6e 65 64 20 69 6e 20 74 68 65 20 6f 62 6a 65 63 74 20 66 69 6c 65 2e 0a 0a 20 20 20 20 ┆efined in the object file. ┆
0x0960…0980 20 46 6f 72 20 65 76 65 72 79 20 65 78 74 65 72 6e 61 6c 20 72 65 6c 6f 63 61 74 69 6f 6e 20 28 ┆ For every external relocation (┆
0x0980…09a0 65 78 63 65 70 74 20 52 5f 41 42 53 29 20 61 20 73 69 67 6e 65 64 20 63 6f 6e 2d 0a 20 20 20 20 ┆except R_ABS) a signed con- ┆
0x09a0…09c0 20 73 74 61 6e 74 20 69 73 20 61 64 64 65 64 20 74 6f 20 74 68 65 20 73 79 6d 62 6f 6c 27 73 20 ┆ stant is added to the symbol's ┆
0x09c0…09e0 76 69 72 74 75 61 6c 20 61 64 64 72 65 73 73 20 74 68 61 74 20 74 68 65 0a 0a 0a 0a 0a 0a 0a 20 ┆virtual address that the ┆
0x09e0…0a00 20 20 20 20 72 65 6c 6f 63 61 74 69 6f 6e 20 65 6e 74 72 79 20 72 65 66 65 72 73 20 74 6f 2e 20 ┆ relocation entry refers to. ┆
0x0a00…0a20 20 54 68 69 73 20 63 6f 6e 73 74 61 6e 74 20 69 73 20 61 73 73 65 6d 62 6c 65 64 20 61 74 0a 20 ┆ This constant is assembled at ┆
0x0a20…0a40 20 20 20 20 74 68 65 20 61 64 64 72 65 73 73 20 62 65 69 6e 67 20 72 65 6c 6f 63 61 74 65 64 2e ┆ the address being relocated.┆
0x0a40…0a60 0a 0a 20 20 20 20 20 52 5f 41 42 53 20 20 20 20 20 20 20 20 20 20 20 20 20 54 68 65 20 72 65 66 ┆ R_ABS The ref┆
0x0a60…0a80 65 72 65 6e 63 65 20 69 73 20 61 62 73 6f 6c 75 74 65 20 61 6e 64 20 6e 6f 20 72 65 6c 6f 63 61 ┆erence is absolute and no reloca┆
0x0a80…0aa0 2d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 74 69 6f 6e 20 69 73 ┆- tion is┆
0x0aa0…0ac0 20 6e 65 63 65 73 73 61 72 79 2e 20 20 54 68 65 20 65 6e 74 72 79 20 77 69 6c 6c 20 62 65 0a 20 ┆ necessary. The entry will be ┆
0x0ac0…0ae0 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 69 67 6e 6f 72 65 64 2e 0a 0a ┆ ignored. ┆
0x0ae0…0b00 20 20 20 20 20 52 5f 52 45 46 48 41 4c 46 20 20 20 20 20 20 20 20 20 41 20 31 36 2d 62 69 74 20 ┆ R_REFHALF A 16-bit ┆
0x0b00…0b20 72 65 66 65 72 65 6e 63 65 20 74 6f 20 74 68 65 20 73 79 6d 62 6f 6c 27 73 20 76 69 72 74 75 61 ┆reference to the symbol's virtua┆
0x0b20…0b40 6c 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 61 64 64 72 65 73 73 ┆l address┆
0x0b40…0b60 2e 0a 0a 20 20 20 20 20 52 5f 52 45 46 57 4f 52 44 20 20 20 20 20 20 20 20 20 41 20 33 32 2d 62 ┆. R_REFWORD A 32-b┆
0x0b60…0b80 69 74 20 72 65 66 65 72 65 6e 63 65 20 74 6f 20 74 68 65 20 73 79 6d 62 6f 6c 27 73 20 76 69 72 ┆it reference to the symbol's vir┆
0x0b80…0ba0 74 75 61 6c 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 61 64 64 72 ┆tual addr┆
0x0ba0…0bc0 65 73 73 2e 0a 0a 20 20 20 20 20 52 5f 4a 4d 50 41 44 44 52 20 20 20 20 20 20 20 20 20 41 20 32 ┆ess. R_JMPADDR A 2┆
0x0bc0…0be0 36 2d 62 69 74 20 6a 75 6d 70 20 69 6e 73 74 72 75 63 74 69 6f 6e 20 72 65 66 65 72 65 6e 63 65 ┆6-bit jump instruction reference┆
0x0be0…0c00 20 74 6f 20 74 68 65 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 73 ┆ to the s┆
0x0c00…0c20 79 6d 62 6f 6c 27 73 20 76 69 72 74 75 61 6c 20 61 64 64 72 65 73 73 2e 0a 0a 20 20 20 20 20 52 ┆ymbol's virtual address. R┆
0x0c20…0c40 5f 52 45 46 48 49 20 20 20 20 20 20 20 20 20 20 20 41 20 72 65 66 65 72 65 6e 63 65 20 74 6f 20 ┆_REFHI A reference to ┆
0x0c40…0c60 74 68 65 20 68 69 67 68 20 31 36 2d 62 69 74 73 20 6f 66 20 74 68 65 0a 20 20 20 20 20 20 20 20 ┆the high 16-bits of the ┆
0x0c60…0c80 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 73 79 6d 62 6f 6c 27 73 20 76 69 72 74 75 61 6c 20 ┆ symbol's virtual ┆
0x0c80…0ca0 61 64 64 72 65 73 73 2e 20 20 54 68 65 20 6e 65 78 74 20 72 65 6c 6f 2d 0a 20 20 20 20 20 20 20 ┆address. The next relo- ┆
0x0ca0…0cc0 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 63 61 74 69 6f 6e 20 65 6e 74 72 79 20 6d 75 73 ┆ cation entry mus┆
0x0cc0…0ce0 74 20 62 65 20 74 68 65 20 63 6f 72 72 65 73 70 6f 6e 64 69 6e 67 0a 20 20 20 20 20 20 20 20 20 ┆t be the corresponding ┆
0x0ce0…0d00 20 20 20 20 20 20 20 20 20 20 20 20 20 20 52 5f 52 45 46 4c 4f 20 65 6e 74 72 79 20 73 6f 20 74 ┆ R_REFLO entry so t┆
0x0d00…0d20 68 65 20 70 72 6f 70 65 72 20 76 61 6c 75 65 20 6f 66 20 74 68 65 0a 20 20 20 20 20 20 20 20 20 ┆he proper value of the ┆
0x0d20…0d40 20 20 20 20 20 20 20 20 20 20 20 20 20 20 63 6f 6e 73 74 61 6e 74 20 74 6f 20 62 65 20 61 64 64 ┆ constant to be add┆
0x0d40…0d60 65 64 20 74 6f 20 74 68 65 20 73 79 6d 62 6f 6c 27 73 20 76 69 72 2d 0a 20 20 20 20 20 20 20 20 ┆ed to the symbol's vir- ┆
0x0d60…0d80 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 74 75 61 6c 20 61 64 64 72 65 73 73 20 63 61 6e 20 ┆ tual address can ┆
0x0d80…0da0 62 65 20 72 65 63 6f 6e 73 74 72 75 63 74 65 64 2e 0a 0a 20 20 20 20 20 52 5f 52 45 46 4c 4f 20 ┆be reconstructed. R_REFLO ┆
0x0da0…0dc0 20 20 20 20 20 20 20 20 20 20 41 20 72 65 66 65 72 65 6e 63 65 20 74 6f 20 6c 6f 77 20 31 36 2d ┆ A reference to low 16-┆
0x0dc0…0de0 62 69 74 73 20 74 6f 20 74 68 65 20 73 79 6d 62 6f 6c 27 73 0a 20 20 20 20 20 20 20 20 20 20 20 ┆bits to the symbol's ┆
0x0de0…0e00 20 20 20 20 20 20 20 20 20 20 20 20 76 69 72 74 75 61 6c 20 61 64 64 72 65 73 73 2e 0a 0a 20 20 ┆ virtual address. ┆
0x0e00…0e20 20 20 20 52 5f 47 50 52 45 4c 20 20 20 20 20 20 20 20 20 20 20 41 20 31 36 2d 62 69 74 20 6f 66 ┆ R_GPREL A 16-bit of┆
0x0e20…0e40 66 73 65 74 20 74 6f 20 74 68 65 20 73 79 6d 62 6f 6c 27 73 20 76 69 72 74 75 61 6c 0a 20 20 20 ┆fset to the symbol's virtual ┆
0x0e40…0e60 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 61 64 64 72 65 73 73 20 66 72 6f 6d ┆ address from┆
0x0e60…0e80 20 74 68 65 20 67 6c 6f 62 61 6c 20 70 6f 69 6e 74 65 72 20 72 65 67 69 73 74 65 72 2e 0a 0a 20 ┆ the global pointer register. ┆
0x0e80…0ea0 20 20 20 20 52 5f 4c 49 54 45 52 41 4c 20 20 20 20 20 20 20 20 20 41 20 31 36 2d 62 69 74 20 6f ┆ R_LITERAL A 16-bit o┆
0x0ea0…0ec0 66 66 73 65 74 20 74 6f 20 74 68 65 20 6c 69 74 65 72 61 6c 27 73 20 76 69 72 74 75 61 6c 0a 20 ┆ffset to the literal's virtual ┆
0x0ec0…0ee0 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 61 64 64 72 65 73 73 20 66 72 ┆ address fr┆
0x0ee0…0f00 6f 6d 20 74 68 65 20 67 6c 6f 62 61 6c 20 70 6f 69 6e 74 65 72 20 72 65 67 69 73 74 65 72 2e 0a ┆om the global pointer register. ┆
0x0f00…0f20 0a 20 20 20 20 20 52 65 6c 6f 63 61 74 69 6f 6e 20 65 6e 74 72 69 65 73 20 61 72 65 20 67 65 6e ┆ Relocation entries are gen┆
0x0f20…0f40 65 72 61 74 65 64 20 61 75 74 6f 6d 61 74 69 63 61 6c 6c 79 20 62 79 20 74 68 65 20 61 73 73 65 ┆erated automatically by the asse┆
0x0f40…0f60 6d 2d 0a 20 20 20 20 20 62 6c 65 72 20 61 6e 64 20 61 75 74 6f 6d 61 74 69 63 61 6c 6c 79 20 75 ┆m- bler and automatically u┆
0x0f60…0f80 73 65 64 20 62 79 20 74 68 65 20 6c 69 6e 6b 20 65 64 69 74 6f 72 2e 20 20 4c 69 6e 6b 20 65 64 ┆sed by the link editor. Link ed┆
0x0f80…0fa0 69 74 6f 72 0a 20 20 20 20 20 6f 70 74 69 6f 6e 73 20 65 78 69 73 74 20 66 6f 72 20 62 6f 74 68 ┆itor options exist for both┆
0x0fa0…0fc0 20 70 72 65 73 65 72 76 69 6e 67 20 61 6e 64 20 72 65 6d 6f 76 69 6e 67 20 74 68 65 20 72 65 6c ┆ preserving and removing the rel┆
0x0fc0…0fe0 6f 63 61 2d 0a 20 20 20 20 20 74 69 6f 6e 20 65 6e 74 72 69 65 73 20 66 72 6f 6d 20 6f 62 6a 65 ┆oca- tion entries from obje┆
0x0fe0…1000 63 74 20 66 69 6c 65 73 2e 0a 0a 20 20 20 20 20 54 68 65 20 6e 75 6d 62 65 72 20 6f 66 20 72 65 ┆ct files. The number of re┆
0x1000…1020 6c 6f 63 61 74 69 6f 6e 20 65 6e 74 72 69 65 73 20 66 6f 72 20 61 20 73 65 63 74 69 6f 6e 20 69 ┆location entries for a section i┆
0x1020…1040 73 20 66 6f 75 6e 64 20 69 6e 0a 20 20 20 20 20 74 68 65 20 5f 08 73 5f 5f 08 6e 5f 08 72 5f 08 ┆s found in the _ s__ n_ r_ ┆
0x1040…1060 65 5f 08 6c 5f 08 6f 5f 08 63 20 66 69 65 6c 64 20 6f 66 20 74 68 65 20 73 65 63 74 69 6f 6e 20 ┆e_ l_ o_ c field of the section ┆
0x1060…1080 68 65 61 64 65 72 2e 20 20 54 68 69 73 20 66 69 65 6c 64 20 69 73 20 61 0a 20 20 20 20 20 60 43 ┆header. This field is a `C┆
0x1080…10a0 27 20 6c 61 6e 67 75 61 67 65 20 73 68 6f 72 74 20 61 6e 64 20 63 61 6e 20 6f 76 65 72 66 6c 6f ┆' language short and can overflo┆
0x10a0…10c0 77 20 77 69 74 68 20 6c 61 72 67 65 20 6f 62 6a 65 63 74 73 2e 20 20 49 66 0a 20 20 20 20 20 74 ┆w with large objects. If t┆
0x10c0…10e0 68 69 73 20 66 69 65 6c 64 20 6f 76 65 72 66 6c 6f 77 73 20 74 68 65 20 73 65 63 74 69 6f 6e 20 ┆his field overflows the section ┆
0x10e0…1100 68 65 61 64 65 72 20 5f 08 73 5f 5f 08 66 5f 08 6c 5f 08 61 5f 08 67 5f 08 73 20 66 69 65 6c 64 ┆header _ s__ f_ l_ a_ g_ s field┆
0x1100…1120 20 68 61 73 0a 20 20 20 20 20 74 68 65 20 53 5f 4e 52 45 4c 4f 43 5f 4f 56 46 4c 20 62 69 74 20 ┆ has the S_NRELOC_OVFL bit ┆
0x1120…1140 73 65 74 2e 20 20 49 6e 20 74 68 69 73 20 63 61 73 65 20 74 68 65 20 74 72 75 65 20 6e 75 6d 62 ┆set. In this case the true numb┆
0x1140…1160 65 72 20 6f 66 0a 20 20 20 20 20 72 65 6c 6f 63 61 74 69 6f 6e 20 65 6e 74 72 69 65 73 20 69 73 ┆er of relocation entries is┆
0x1160…1180 20 66 6f 75 6e 64 20 69 6e 20 74 68 65 20 5f 08 72 5f 5f 08 76 5f 08 61 5f 08 64 5f 08 64 5f 08 ┆ found in the _ r__ v_ a_ d_ d_ ┆
0x1180…11a0 72 20 66 69 65 6c 64 20 6f 66 20 74 68 65 0a 20 20 20 20 20 66 69 72 73 74 20 72 65 6c 6f 63 61 ┆r field of the first reloca┆
0x11a0…11c0 74 69 6f 6e 20 65 6e 74 72 79 20 66 6f 72 20 74 68 61 74 20 73 65 63 74 69 6f 6e 2e 20 20 54 68 ┆tion entry for that section. Th┆
0x11c0…11e0 61 74 20 72 65 6c 6f 63 61 74 69 6f 6e 0a 20 20 20 20 20 65 6e 74 72 79 20 68 61 73 20 61 20 74 ┆at relocation entry has a t┆
0x11e0…1200 79 70 65 20 6f 66 20 52 5f 41 42 53 20 73 6f 20 69 74 20 69 73 20 69 67 6e 6f 72 65 64 20 77 68 ┆ype of R_ABS so it is ignored wh┆
0x1200…1220 65 6e 20 74 68 65 20 72 65 6c 6f 63 61 2d 0a 20 20 20 20 20 74 69 6f 6e 20 74 61 6b 65 73 20 70 ┆en the reloca- tion takes p┆
0x1220…1240 6c 61 63 65 2e 20 20 54 68 69 73 20 69 73 20 61 20 6b 6c 75 67 65 2e 0a 0a 53 08 53 08 53 08 53 ┆lace. This is a kluge. S S S S┆
0x1240…1260 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 08 4c 08 4c 53 08 53 ┆E E E EE E E E A A A AL L L LS S┆
0x1260…1280 08 53 08 53 4f 08 4f 08 4f 08 4f 0a 20 20 20 20 20 55 73 65 72 20 43 6f 6d 6d 61 6e 64 73 20 28 ┆ S SO O O O User Commands (┆
0x1280…12a0 31 29 3a 20 61 73 2c 20 6c 64 0a 20 20 20 20 20 46 69 6c 65 20 46 6f 72 6d 61 74 73 20 28 35 29 ┆1): as, ld File Formats (5)┆
0x12a0…12c0 3a 20 61 2e 6f 75 74 2c 20 73 79 6d 73 2c 20 73 63 6e 68 64 72 0a 20 20 20 20 20 54 08 54 08 54 ┆: a.out, syms, scnhdr T T T┆
0x12c0…12e0 08 54 58 08 58 08 58 08 58 20 50 08 50 08 50 08 50 72 08 72 08 72 08 72 6f 08 6f 08 6f 08 6f 67 ┆ TX X X X P P P Pr r r ro o o og┆
0x12e0…1300 08 67 08 67 08 67 72 08 72 08 72 08 72 61 08 61 08 61 08 61 6d 08 6d 08 6d 08 6d 6d 08 6d 08 6d ┆ g g gr r r ra a a am m m mm m m┆
0x1300…1320 08 6d 65 08 65 08 65 08 65 72 08 72 08 72 08 72 27 08 27 08 27 08 27 73 08 73 08 73 08 73 20 47 ┆ me e e er r r r' ' ' 's s s s G┆
0x1320…1340 08 47 08 47 08 47 75 08 75 08 75 08 75 69 08 69 08 69 08 69 64 08 64 08 64 08 64 65 08 65 08 65 ┆ G G Gu u u ui i i id d d de e e┆
0x1340…1360 08 65 0a 0a 4d 61 72 63 68 20 31 39 38 39 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 ┆ e March 1989 ┆
0x1360…1380 20 20 20 20 20 20 20 20 20 20 20 20 54 58 20 50 72 6f 67 72 61 6d 6d 65 72 27 73 20 52 65 66 65 ┆ TX Programmer's Refe┆
0x1380…138d 72 65 6e 63 65 0a 0a 0a 0a 0a 0a 0a 0a ┆rence ┆