mirror of
https://github.com/Noratrieb/uwuwind.git
synced 2026-01-14 08:35:09 +01:00
cleanup
This commit is contained in:
parent
4981d850f7
commit
66316bd3be
4 changed files with 17 additions and 19 deletions
1
.envrc
Normal file
1
.envrc
Normal file
|
|
@ -0,0 +1 @@
|
||||||
|
use nix
|
||||||
16
shell.nix
Normal file
16
shell.nix
Normal file
|
|
@ -0,0 +1,16 @@
|
||||||
|
{ pkgs ? import <nixpkgs> { } }: pkgs.mkShell {
|
||||||
|
buildInputs = with pkgs; [
|
||||||
|
rustup
|
||||||
|
gcc
|
||||||
|
clang_16
|
||||||
|
llvmPackages_16.bintools
|
||||||
|
];
|
||||||
|
shellHook = ''
|
||||||
|
export PATH=$PATH:''${CARGO_HOME:-~/.cargo}/bin
|
||||||
|
'';
|
||||||
|
packages = (with pkgs; [
|
||||||
|
gef
|
||||||
|
rust-bindgen
|
||||||
|
shellcheck
|
||||||
|
]);
|
||||||
|
}
|
||||||
16
test.c
16
test.c
|
|
@ -1,16 +0,0 @@
|
||||||
#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;
|
|
||||||
}
|
|
||||||
3
test.rs
3
test.rs
|
|
@ -1,3 +0,0 @@
|
||||||
fn main() {
|
|
||||||
panic!();
|
|
||||||
}
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue