mirror of
https://github.com/Noratrieb/uwuwind.git
synced 2026-01-14 16:45:08 +01:00
uwu wind
This commit is contained in:
parent
38f8ee66e6
commit
b5ee24f896
5 changed files with 171 additions and 28 deletions
18
test.c
18
test.c
|
|
@ -1,8 +1,16 @@
|
|||
#include<stdio.h>
|
||||
#include <stdio.h>
|
||||
#define __USE_GNU
|
||||
#include<dlfcn.h>
|
||||
#include<elf.h>
|
||||
#include <dlfcn.h>
|
||||
#include <elf.h>
|
||||
|
||||
int main() {
|
||||
printf("%d", PT_GNU_EH_FRAME);
|
||||
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;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue