#endif
}
+#ifdef __arm__
static bool needsNoRandomizeWorkaround() {
int major;
int minor;
// Kernels before 3.4.* need the workaround.
return (major < 3) || ((major == 3) && (minor < 4));
}
+#endif
/*
* Utility routine to fork zygote and specialize the child process.
dvmAbort();
}
+#ifdef __arm__
if (needsNoRandomizeWorkaround()) {
int current = personality(0xffffFFFF);
int success = personality((ADDR_NO_RANDOMIZE | current));
ALOGW("Personality switch failed. current=%d error=%d\n", current, errno);
}
}
+#endif
err = setCapabilities(permittedCapabilities, effectiveCapabilities);
if (err != 0) {