TheBrokenRail
0dd0706f52
All checks were successful
minecraft-pi-reborn/pipeline/head This commit looks good
23 lines
422 B
C
23 lines
422 B
C
#pragma once
|
|
|
|
#include <unistd.h>
|
|
#include <string.h>
|
|
#include <sys/mman.h>
|
|
#include <elf.h>
|
|
#include <link.h>
|
|
|
|
#include "log.h"
|
|
#include "exec.h"
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
// Find And Iterate Over All Segments In Current Binary
|
|
typedef void (*segment_callback_t)(ElfW(Addr) section, ElfW(Word) size, void *data);
|
|
void iterate_segments(segment_callback_t callback, void *data);
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|