[sanitizer] remove FreeBSD PS_STRINGS fallback
authorEd Maste <emaste@freebsd.org>
Thu, 14 Apr 2016 14:17:42 +0000 (14:17 +0000)
committerEd Maste <emaste@freebsd.org>
Thu, 14 Apr 2016 14:17:42 +0000 (14:17 +0000)
commitfe2b70637c6af19ab196588bf007e0158c5a1d79
tree0bba41d29b565cc1ce8743de329eb3101b9b6c47
parentd502f47726826e02cfca484e8eaae933260454b4
[sanitizer] remove FreeBSD PS_STRINGS fallback

The PS_STRINGS constant can easily be incorrect with mismatched
kernel/userland - e.g. when building i386 sanitizers on FreeBSD/amd64
with -m32. The kern.ps_strings sysctl was introduced over 20 years ago
as the supported way to fetch the environment and argument string
addresses from the kernel, so the fallback is never used.

Differential Revision: http://reviews.llvm.org/D19027

llvm-svn: 266305
compiler-rt/lib/sanitizer_common/sanitizer_linux.cc