MCPcopy Create free account
hub / github.com/GJDuck/e9patch / e9addr

Function e9addr

src/e9patch/e9loader_elf.cpp:326–332  ·  view source on GitHub ↗

* Get an address. */

Source from the content-addressed store, hash-verified

324 * Get an address.
325 */
326static 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.

Callers 2

e9initFunction · 0.85
e9finiFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected