* Get an address. */
| 324 | * Get an address. |
| 325 | */ |
| 326 | static NO_INLINE const void *e9addr(intptr_t addr, const uint8_t *elf_base) |
| 327 | { |
| 328 | if ((addr & E9_ABS_ADDR) != 0x0) |
| 329 | return (const void *)(addr & ~E9_ABS_ADDR); |
| 330 | else |
| 331 | return (const void *)(elf_base + addr); |
| 332 | } |
| 333 | |
| 334 | /* |
| 335 | * Loader initialization code. |