summaryrefslogtreecommitdiff
path: root/addr2line.c
diff options
context:
space:
mode:
authorNARUSE, Yui <nurse@users.noreply.github.com>2022-12-24 02:24:55 +0900
committerGitHub <noreply@github.com>2022-12-24 02:24:55 +0900
commitee60756495b775c4e8fc93a57094ac4e4b83fa7f (patch)
treef43a5ba08a2b102e27ff6b40e4d4c1c1de14386a /addr2line.c
parent1876cda972ea226ee85faf14dae6d047e145a4c6 (diff)
downloadruby-ee60756495b775c4e8fc93a57094ac4e4b83fa7f.tar.gz
Fix backtrace beyond _singtramp on macOS arm64 (#7015)
* move ptrauth_strip logic into vm_dump.c * don't use _sigtramp special logic on arm64
Diffstat (limited to 'addr2line.c')
-rw-r--r--addr2line.c9
1 files changed, 0 insertions, 9 deletions
diff --git a/addr2line.c b/addr2line.c
index 77538f6eb9..f7d5b0239b 100644
--- a/addr2line.c
+++ b/addr2line.c
@@ -2549,15 +2549,6 @@ rb_dump_backtrace_with_lines(int num_traces, void **traces)
/* 2 is NULL + main executable */
void **dladdr_fbases = (void **)calloc(num_traces+2, sizeof(void *));
-#if defined(__APPLE__) && defined(__aarch64__)
- // Strip Arm64's pointer authentication.
- for (i = 0; i < num_traces; i++) {
- // I wish I could use "ptrauth_strip()" but I get an error:
- // "this target does not support pointer authentication"
- traces[i] = (void*)(((uint64_t)traces[i]) & 0x7fffffffffffull);
- }
-#endif
-
#ifdef HAVE_MAIN_EXE_PATH
char *main_path = NULL; /* used on printing backtrace */
ssize_t len;