fixes issue 936

If we can't allocate reachable memory for landing pads, we use the padding
at the end of ntdll's +rx segment.  This gets mixed-mode working on win8
and is sufficient for now, but it's fragile: there might not be enough
padding.  Long-term we'll need to borrow space from multiple areas in
ntdll.

Adds trimming of landing pads to cut space needed in half.

git-svn-id: https://dynamorio.googlecode.com/svn/trunk@1659 49cc7528-f6fd-11dd-9d1a-b59b2e1864b6
fixes issue 565

Windows 8 core DynamoRIO support now complete.

Win8 support is now externally visible:
+ -max_supported_os_version option updated
+ added to release notes

However, private kernelbase.dll is not supported: split as i#915.
This commit adds a fatal error message if kernelbase is loaded on win8.

git-svn-id: https://dynamorio.googlecode.com/svn/trunk@1660 49cc7528-f6fd-11dd-9d1a-b59b2e1864b6
fixes issue 939

+ Added DYNAMORIO_CONFIGDIR alternative to HOME as a config dir location.
  It takes precedence over HOME.
+ Additionally, drrun (but not drconfig) will use a temp dir rather than
  failing.  To accomplish this, I added a new drconfiglib API routine
  dr_get_config_dir() which must be called w/ appropriate params
  prior to creating the child process.
+ Propagate DYNAMORIO_CONFIGDIR across execve and Windows process creation.
  As part of this, re-factored the env var propagation in both linux/os.c
  and windows/syscall.c to make it easiser to add more env vars in the
  future.
+ Decided against adding a config_dir param to all of the drconfig
  API routines at this time.
+ Did not add a test b/c it's not easy to do so w/ our existing harness but
  I did manual tests on Linux and Windows for 2-step and 1-step configs.

git-svn-id: https://dynamorio.googlecode.com/svn/trunk@1661 49cc7528-f6fd-11dd-9d1a-b59b2e1864b6
fixes http://code.google.com/p/drmemory/issues/detail?id=1044

Adjust what's hidden from clients wrt the displaced app code move to the
landing pad: hide the jump to the landing pad, and the initial jump from
it, but not the displaced code nor subsequent jump back.

git-svn-id: https://dynamorio.googlecode.com/svn/trunk@1662 49cc7528-f6fd-11dd-9d1a-b59b2e1864b6
i#899: add note about NtWow64AllocateVirtualMemory64

git-svn-id: https://dynamorio.googlecode.com/svn/trunk@1664 49cc7528-f6fd-11dd-9d1a-b59b2e1864b6
fixes issue 948

Set MAP_IMPORTED_CONFIG_{RELWITHDEBINFO,RELMINSIZE} for every
exported target so that an including project can use those build types.
CMake did not make this easy: it took raw appending to the file and a
separate append on install.

git-svn-id: https://dynamorio.googlecode.com/svn/trunk@1665 49cc7528-f6fd-11dd-9d1a-b59b2e1864b6
In runsuite_common_pre.cmake (thus, all test suites and package
builds), use the most recent Visual Studio version that is installed.
Added a generator= arg so an older version can be selected.

git-svn-id: https://dynamorio.googlecode.com/svn/trunk@1666 49cc7528-f6fd-11dd-9d1a-b59b2e1864b6
i#521: Call config_heap_init() to fix datasec_not_prot curiosity

If this or another curiosity fires between os_fast_exit() and utils_exit() again, we will still hit an assert.

Fixes issue 521.

Review URL: https://codereview.appspot.com/6725043

git-svn-id: https://dynamorio.googlecode.com/svn/trunk@1667 49cc7528-f6fd-11dd-9d1a-b59b2e1864b6