return orig;
}
+#if defined(SOLARIS_RESERVE_SYSSTAT_ADDR) || \
+ defined(SOLARIS_RESERVE_SYSSTAT_ZONE_ADDR)
+#define ORIG_AUXV_PRESENT 1
+#endif
+
+#if defined(ORIG_AUXV_PRESENT)
/* The auxiliary vector might not be present. So we cross-check pointers from
argv and envp pointing to the string table. */
static vki_auxv_t *find_original_auxv(Addr init_sp)
VG_(printf)("valgrind: vector. Cannot continue. Sorry.\n\n");
VG_(exit)(1);
}
+#endif /* ORIG_AUXV_PRESENT */
/* This sets up the client's initial stack, containing the args,
environment and aux vector.
vg_assert(VG_(args_the_exename));
vg_assert(VG_(args_for_client));
+# if defined(ORIG_AUXV_PRESENT)
/* Get the original auxv (if any). */
vki_auxv_t *orig_auxv = find_original_auxv(init_sp);
+# endif /* ORIG_AUXV_PRESENT */
/* ==================== compute sizes ==================== */