From 840664fd707e8e9394a0703dbe0ff1552ab427d1 Mon Sep 17 00:00:00 2001 From: comex Date: Mon, 28 Mar 2011 23:34:18 -0400 Subject: [PATCH] debug_enabled initializer is an initializer --- make_kernel_patchfile.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/make_kernel_patchfile.c b/make_kernel_patchfile.c index db86c2b..92858ba 100644 --- a/make_kernel_patchfile.c +++ b/make_kernel_patchfile.c @@ -120,7 +120,7 @@ void do_kernel(struct binary *binary, struct binary *sandbox) { resolve_ldr(binary, _PE_i_can_has_debugger + 2), uint32_t, {1}); - patch("debug_enabled initializer", + patch("-debug_enabled initializer", find_data(b_macho_segrange(binary, "__TEXT"), is_armv7 ? "04 22 01 92 00 98 .. 49 -" : "?", 0, true), uint32_t, {0x60082001}); // mov r0, #1; str r0, [r1]