Skip to content

Commit 13757ee

Browse files
committed
expose main symbol
1 parent 5feca57 commit 13757ee

File tree

1 file changed

+16
-14
lines changed

1 file changed

+16
-14
lines changed

system/main.c

Lines changed: 16 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -41,20 +41,6 @@
4141
#include <CoreFoundation/CoreFoundation.h>
4242
#endif
4343

44-
static void *qemu_default_main(void *opaque)
45-
{
46-
int status;
47-
48-
replay_mutex_lock();
49-
bql_lock();
50-
status = qemu_main_loop();
51-
qemu_cleanup(status);
52-
bql_unlock();
53-
replay_mutex_unlock();
54-
55-
exit(status);
56-
}
57-
5844
int (*qemu_main)(void);
5945

6046
#ifdef CONFIG_DARWIN
@@ -69,6 +55,21 @@ int (*qemu_main)(void) = os_darwin_cfrunloop_main;
6955
//// --- Begin LibAFL code ---
7056
#ifndef AS_LIB
7157
//// --- End LibAFL code ---
58+
59+
static void *qemu_default_main(void *opaque)
60+
{
61+
int status;
62+
63+
replay_mutex_lock();
64+
bql_lock();
65+
status = qemu_main_loop();
66+
qemu_cleanup(status);
67+
bql_unlock();
68+
replay_mutex_unlock();
69+
70+
exit(status);
71+
}
72+
7273
int main(int argc, char **argv)
7374
{
7475
qemu_init(argc, argv);
@@ -84,6 +85,7 @@ int main(int argc, char **argv)
8485
g_assert_not_reached();
8586
}
8687
}
88+
8789
//// --- Begin LibAFL code ---
8890
#endif
8991
//// --- End LibAFL code ---

0 commit comments

Comments
 (0)