| Electronic Components Datasheet Search |
|
UM0438 Datasheet(PDF) 19 Page - STMicroelectronics |
|
|
|||||||||||||||||||||||||||||
UM0438 Datasheet(HTML) 19 Page - STMicroelectronics |
|
19 / 50 page ![]() UM0438 Application Binary Interface (ABI) 19/50 Note: The relocations in Table 9 are not for load and store instructions (such as, e_lwz and e_stw), which should use the EABI relocation R_PPC_EMB_SDA21. These relocations, as written here, only start with an e_add16i. A linker might convert the instruction to an e_li. Although other relocations do not specify the instructions they apply to, it may be useful to know that these relocations can apply only to one instruction. Table 9. Relocation types with special semantics Name Description R_PPC_VLE_SDA21(1) The linker computes a 21-bit value with the 5 msbs having the value 13 (for GPR13), 2 (for GPR2), or 0. If the symbol whose index is in r_info is contained in .sdata or .sbss, a linker supplies a value of 13; if the symbol is in .PPC.EMB.sdata2 or .PPC.EMB.sbss2, the linker supplies a value of 2; if the symbol is in .PPC.EMB.sdata0 or .PPC.EMB.sbss0, the linker supplies a value of 0; otherwise, the link fails. The 16 lsbs of this 21-bit value are set to the address of the symbol plus the relocation entry r_addend value minus the appropriate base for the symbol section: _SDA_BASE_ for a symbol in .sdata or .sbss _SDA2_BASE_ for a symbol in .PPC.EMB.sdata2 or .PPC.EMB.sbss2 0 for a symbol in .PPC.EMB.sdata0 or .PPC.EMB.sbss0 If the 5 msbs of the computed 21-bit value are non-zero, the linker uses the low21 relocation field, where the 11 msbs remain unchanged and the computed 21-bit value occupies bits 11–31. Otherwise, the 5 msbs of the computed 21-bit value are zero, with the following results: The linker uses the split20 relocation field, where only bits occupying 6–10 remain unchanged The 5 msbs of the 21-bit value are ignored The next msb is copied to bit 11 and to bits 17–20 as a sign-extension The next 4 msbs are copied to bits 12–15 The 11 remaining bits are copied to bits 21–31. In the destination word, bits 0–5 are encoded with the binary value 011100, and bit 16 is encoded with the binary value 0. Use of the split20 relocation field forces the encoding of the VLE e_li instruction, which may change the user's specified instruction. See Table 6. R_PPC_VLE_SDA21_LO 1 Like R_PPC_VLE_SDA21, except that the #lo() operator obtains the 16 lsbs of the 21- bit value. The #lo() operator is applied after the address of the symbol plus the relocation entry r_addend value is calculated, minus the appropriate base for the symbol’s section: _SDA_BASE_ for a symbol in .sdata or .sbss, _SDA2_BASE_ for a symbol in .PPC.EMB.sdata2 or .PPC.EMB.sbss2, or 0 for a symbol in .PPC.EMB.sdata0 or .PPC.EMB.sbss0. The R_PPC_VLE_SDA21 entry describes applying the calculated 21-bit value to the destination word that uses either the low21 relocation field or the split20 relocation field. See Table 6. 1. Note that if the opcode is changed, 27 bits are changed instead of 21. |
|
Link URL |
| Does ALLDATASHEET help your business so far? [ DONATE ] |
About Alldatasheet | Advertisement | Contact us | Privacy Policy | Link to Datasheet | Link Exchange | Manufacturer List All Rights Reserved©Alldatasheet.com |
| Russian : Alldatasheetru.com | Korean : Alldatasheet.co.kr | Spanish : Alldatasheet.es | French : Alldatasheet.fr | Italian : Alldatasheetit.com Portuguese : Alldatasheetpt.com | Polish : Alldatasheet.pl | Vietnamese : Alldatasheet.vn Indian : Alldatasheet.in | Mexican : Alldatasheet.com.mx | British : Alldatasheet.co.uk | New Zealand : Alldatasheet.co.nz |
|
Family Site : ic2ic.com |
icmetro.com |