diff options
author | comex | 2015-02-28 21:25:29 -0500 |
---|---|---|
committer | comex | 2015-02-28 21:25:29 -0500 |
commit | 29c65b4db228409c6fea777d976e6442550913a7 (patch) | |
tree | e6246385062011d7c35bd18cc8ef8204a8ee6dd9 /lib/darwin/interpose.c | |
parent | add substituted launchd plist; move helpers to separate directory (diff) | |
download | substitute-29c65b4db228409c6fea777d976e6442550913a7.tar.gz |
fix accidental usage of panic() from mach/mach.h instead of substitute_panic
Diffstat (limited to 'lib/darwin/interpose.c')
-rw-r--r-- | lib/darwin/interpose.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/darwin/interpose.c b/lib/darwin/interpose.c index 419fc65..dd267ac 100644 --- a/lib/darwin/interpose.c +++ b/lib/darwin/interpose.c @@ -101,7 +101,7 @@ static int try_bind_section(void *bind, size_t size, const struct interpose_stat if ((uint32_t) new != new) { /* text rels should only show up on i386, where * this is impossible... */ - panic("bad TEXT_ABSOLUTE32 rel\n"); + substitute_panic("bad TEXT_ABSOLUTE32 rel\n"); } old = __atomic_exchange_n((uint32_t *) p, (uint32_t) new, __ATOMIC_RELAXED); break; @@ -111,14 +111,14 @@ static int try_bind_section(void *bind, size_t size, const struct interpose_stat uintptr_t rel = new - pc; if ((uint32_t) rel != rel) { /* ditto */ - panic("bad TEXT_ABSOLUTE32 rel\n"); + substitute_panic("bad TEXT_ABSOLUTE32 rel\n"); } old = __atomic_exchange_n((uint32_t *) p, (uint32_t) rel, __ATOMIC_RELAXED); old += pc; break; } default: - panic("unknown relocation type\n"); + substitute_panic("unknown relocation type\n"); break; } if (h->old_ptr) @@ -151,7 +151,7 @@ int substitute_interpose_imports(const struct substitute_image *image, int ret = SUBSTITUTE_OK; if (options != 0) - panic("%s: unrecognized options\n", __func__); + substitute_panic("%s: unrecognized options\n", __func__); struct interpose_state st; st.slide = image->slide; |