summaryrefslogtreecommitdiff
path: root/src/gen/main.c
diff options
context:
space:
mode:
authorspv420 <unomilliono@gmail.com>2022-04-23 19:00:46 -0400
committerspv420 <unomilliono@gmail.com>2022-04-23 19:00:46 -0400
commit26c3d55c81b7a33a4d87ba8d2f40a918d2d9f737 (patch)
tree5911108f2bdb563c518347b662e12b916b469931 /src/gen/main.c
parentbc3e2818f1c96289f1db2ed367274fb7bb06e89a (diff)
hahahahaha we're all gonna die *hbomberguy intro*
Diffstat (limited to 'src/gen/main.c')
-rw-r--r--src/gen/main.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/gen/main.c b/src/gen/main.c
index 3c8d513..5d6be0a 100644
--- a/src/gen/main.c
+++ b/src/gen/main.c
@@ -10,6 +10,7 @@
#include <unistd.h>
#include <string.h>
#include <stdio.h>
+#include <dlfcn.h>
#include "stage1_primitives.h"
#include "stage0_primitives.h"
@@ -202,6 +203,8 @@ int main(int argc,
fprintf(fp, "# - with love from spv <3\n");
fprintf(fp, "\n");
+ fprintf(stderr, "0x%x\n", RTLD_DEFAULT);
+
uint32_t stack_base = 0x1c7738; // my shell setup
// uint32_t stack_base = 0x1c7c88; // my 4s shell setup
// uint32_t stack_base = 0x1c2e48; // my lldb