| Electronic Components Datasheet Search |
|
UM0438 Datasheet(PDF) 17 Page - STMicroelectronics |
|
|
|||||||||||||||||||||||||||||
UM0438 Datasheet(HTML) 17 Page - STMicroelectronics |
|
17 / 50 page ![]() UM0438 Application Binary Interface (ABI) 17/50 Relocation entries apply to half words or words. In either case, the r_offset value designates the offset or virtual address of the first byte of the affected storage unit. The relocation type specifies which bits to change and how to calculate their values. Processors that implement the PowerPC architecture use only the Elf32_Rela relocation entries with explicit addends. For relocation entries, the r_addend member serves as the relocation addend. In all cases, the offset, addend, and the computed result use the byte order specified in the ELF header. The following general rules apply to the interpretation of the relocation types in Table 8. ● + and – denote 32-bit modulus addition and subtraction. ● || denotes concatenation of bits or bit fields. ● >> denotes arithmetic right-shifting (shifting with sign copying) of the value of the left operand by the number of bits given by the right operand. ● For relocation types associated with branch displacements, in which the name of the relocation type contains 8, the upper 24 bits of the computed value before shifting must all be the same (either all zeros or all ones—that is, sign-extended displacement). For relocation types in which the name contains 15, the upper 17 bits of the computed value before shifting must all be the same. For relocation types in which the name contains 24, the upper 7 bits of the computed value before shifting must all be the same. For relocation types whose names contain 8, 15, or 24, the low 1-bit of the computed value before shifting must be zero (half-word boundary). ● #hi(value) and #lo(value) denote the 16 msbs and lsbs of the indicated value. That is, #lo(x)=(x & 0xFFFF) and #hi(x)=((x>>16) & 0xFFFF). ● The high-adjusted value, #ha(value), compensates for #lo() being treated as a signed number: #ha(x)=(((x >> 16) + ((x & 0x8000) ? 1 : 0)) & 0xFFFF). ● _SDA_BASE_ is a symbol defined by the link editor whose value in shared objects is the same as _GLOBAL_OFFSET_TABLE_, and in executable programs is an address within the small data area. Similarly, _SDA2_BASE_ is a symbol defined by the link editor whose value in executable programs is an address within the small data 2 area. Note that the relocation types in Table 8 apply only to VLE sections. Sections containing Book E instructions should use the PowerPC e500 Application Binary Interface. X Represents the offset from the appropriate base (_SDA_BASE_, _SDA2_BASE_, or 0) to where the linker placed the symbol whose index is in r_info. Y Represents a 5-bit value for the base register for the section where the linker placed the symbol whose index is in r_info. Acceptable values are: the value 13 for symbols in .sdata or .sbss, the value 2 for symbols in .PPC.EMB.sdata2 or .PPC.EMB.sbss2, or the value 0 for symbols in .PPC.EMB.sdata0 or .PPC.EMB.sbss0. Table 8. VLE relocation types Name Value Field Calculation R_PPC_VLE_REL8 216 bdh8 (S + A - P) >> 1 R_PPC_VLE_REL15 217 bdh15 (S + A - P) >> 1 R_PPC_VLE_REL24 218 bdh24 (S + A - P) >> 1 R_PPC_VLE_LO16A 219 split16a #lo(S + A) Table 7. Notation conventions (continued) Field Descriptions |
|
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 |