mirror of
https://github.com/Noratrieb/uwuwind.git
synced 2026-01-14 08:35:09 +01:00
16 lines
No EOL
264 B
C
16 lines
No EOL
264 B
C
#include <stdio.h>
|
|
#define __USE_GNU
|
|
#include <dlfcn.h>
|
|
#include <elf.h>
|
|
|
|
void *get_eh_frame(void *addr)
|
|
{
|
|
struct dl_find_object out;
|
|
int ret = _dl_find_object(addr, &out);
|
|
if (ret != 0)
|
|
{
|
|
return NULL;
|
|
}
|
|
|
|
return out.dlfo_eh_frame;
|
|
} |