From 0fadddec65b870ed285fbe52465c24a9baeb613a Mon Sep 17 00:00:00 2001 From: John Reiser Date: Mon, 12 Jun 2023 15:24:40 -0700 Subject: [PATCH] Force 'bkpt' on arm.v5a and below fixup https://github.com/upx/upx/issues/612 modified: stub/src/amd64-darwin.macho-main.c --- src/stub/src/amd64-darwin.macho-main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/stub/src/amd64-darwin.macho-main.c b/src/stub/src/amd64-darwin.macho-main.c index b0f1fa31..a4067578 100644 --- a/src/stub/src/amd64-darwin.macho-main.c +++ b/src/stub/src/amd64-darwin.macho-main.c @@ -482,7 +482,7 @@ void my_bkpt(void const *foo, ...) #elif defined(__aarch64__) //}{ __asm__("brk #0"); #elif defined(__arm__) //}{ - __asm__("bkpt"); + __asm__(".long 0xe7f001f0"); // "bkpt" ==> "udf #16" #endif //} }