Rev 3589 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 3589 | Rev 3663 | ||
---|---|---|---|
Line 38... | Line 38... | ||
38 | 38 | ||
39 | #include <arch.h> |
39 | #include <arch.h> |
40 | #include <elf_dyn.h> |
40 | #include <elf_dyn.h> |
41 | #include <symbol.h> |
41 | #include <symbol.h> |
42 | #include <rtld.h> |
42 | #include <rtld.h> |
- | 43 | #include <smc.h> |
|
43 | 44 | ||
44 | #define __L(ptr) ((uint32_t)(ptr) & 0x0000ffff) |
45 | #define __L(ptr) ((uint32_t)(ptr) & 0x0000ffff) |
45 | #define __HA(ptr) ((uint32_t)(ptr) >> 16) |
46 | #define __HA(ptr) ((uint32_t)(ptr) >> 16) |
46 | 47 | ||
47 | // ldis r11, .PLTtable@ha |
48 | // ldis r11, .PLTtable@ha |
Line 231... | Line 232... | ||
231 | printf("unknown relocation type\n"); |
232 | printf("unknown relocation type\n"); |
232 | break; |
233 | break; |
233 | } |
234 | } |
234 | } |
235 | } |
235 | 236 | ||
- | 237 | /* |
|
- | 238 | * Synchronize the used portion of PLT. This is necessary since |
|
- | 239 | * we are writing instructions. |
|
- | 240 | */ |
|
- | 241 | smc_coherence(&plt[18], plt_n * 2 * sizeof(uint32_t)); |
|
236 | } |
242 | } |
237 | 243 | ||
238 | /** @} |
244 | /** @} |
239 | */ |
245 | */ |