3 ms·
> ... you can emit calls to functions in the address space as literal address instead of using a loader to patch them from relocation tables. Technically, dlop
by pritambaral 3y ago
> ... you can emit calls to functions in the address space as literal address instead of using a loader to patch them from relocation tables.
Technically, dlopen can do this too, except it'd make dlopen() slower.
My toy compiler's C backend does just that: emit ELF files with relocation tables but load them and patch all relocations to direct addresses instead of PLT/GOT jump.