fixed issue 1041
- Add MAP_32BITS back to os_heap_reserve
- Add os_raw_mem_alloc/free for dr_raw_mem_alloc/free
- Change dr_raw_mem_alloc API to return the address actually allocated

git-svn-id: https://dynamorio.googlecode.com/svn/trunk@1813 49cc7528-f6fd-11dd-9d1a-b59b2e1864b6
Update docs for 4.0.1 release.  Added separators between changelists as
we now have quite a few.

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

Lack of OS_OPEN_APPEND implies truncation, so set O_TRUNC on Linux.

git-svn-id: https://dynamorio.googlecode.com/svn/trunk@1816 49cc7528-f6fd-11dd-9d1a-b59b2e1864b6
fix VPS build failure

git-svn-id: https://dynamorio.googlecode.com/svn/trunk@1817 49cc7528-f6fd-11dd-9d1a-b59b2e1864b6
i#1051: pcache + reset

1) Fix bug where coarse units are marked non-primary post-reset, which
   prevented any persistence post-reset.
2) Disable reset when -persist is specified, until we come up with
   reasonable ways to combine their behavior.

git-svn-id: https://dynamorio.googlecode.com/svn/trunk@1818 49cc7528-f6fd-11dd-9d1a-b59b2e1864b6
- add drtable extension
- add bbcov sample
- update release.dox about drtable

git-svn-id: https://dynamorio.googlecode.com/svn/trunk@1819 49cc7528-f6fd-11dd-9d1a-b59b2e1864b6
- upgrade drtable size from uint to ptr_uint_t
- add option in bbcov sample
- add cbr target/fall online check in bbcov sample

git-svn-id: https://dynamorio.googlecode.com/svn/trunk@1820 49cc7528-f6fd-11dd-9d1a-b59b2e1864b6
i#975: Hide symbols in the STATIC_LIBRARY build on Unix

This is accomplished by doing a partial link (ld -r) and then using
objcopy --localize-hidden.  In GNU visiblity lingo, "hidden" means
public outside the individual translation unit, and "local" means the
same thing as C static.

In particular, we need to hide our string routines and our getenv
implementation.

Re-enables linux.fib-static and -pie which now pass with STATIC_LIBRARY.

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

git-svn-id: https://dynamorio.googlecode.com/svn/trunk@1821 49cc7528-f6fd-11dd-9d1a-b59b2e1864b6
i#1054: Find DR's library bounds in a STATIC_LIBRARY build

This ends up reducing the number of STATIC_LIBRARY ifdefs, which I like.
is_in_dynamo_dll() still returns false for static builds.

Fixes issue 1054.

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

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

Support multiple client configs from within a function:

+ Use two global properties, one with the listdir in the name and one with
  the project name in the name, for "one-time-only" global changes with
  different scopes.

+ Do not remove "-m32" from cflags on Linux.

git-svn-id: https://dynamorio.googlecode.com/svn/trunk@1824 49cc7528-f6fd-11dd-9d1a-b59b2e1864b6
DrMem i#1105c#3: cwd is a global var in the scope of the including project,
so a prefixed name is required for robustness: cwd => DynamoRIO_cwd.

git-svn-id: https://dynamorio.googlecode.com/svn/trunk@1825 49cc7528-f6fd-11dd-9d1a-b59b2e1864b6
Fix clang build for using DR in google3

None of these are bugs in core DR.

- parse_int(): base is unsigned, comparing vs 0 is tautological
- atomic_compare_exchange_int64(): the inline asm is invalid on ia32, but
  gcc doesn't complain since it is unused
- init_patch_list(): clang says the comparison vs USHORT_MAX is
  tautological based on the range of the enum type.  Casting to int
  silences the warning.
- linux.fib-static: Clang can't link libc with -static and -rdynamic,
  which is in the default CMAKE_SHARED_LIBRARY_LINK_C_FLAGS.  Adding
  -Wl,--no-export-dynamic makes it work.
- linux.vfork run_child(): no return from non-void function

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

git-svn-id: https://dynamorio.googlecode.com/svn/trunk@1826 49cc7528-f6fd-11dd-9d1a-b59b2e1864b6
Private library support improvement: search paths when loading an auxiliary
library.  This will make it easier to have clients that dynamically load
dbghelp.dll or other libraries on demand and keep their base states
simpler.  One use case is Windows early injection for Dr. Memory.

Add path searching to dr_load_aux_library():
+ Add locate_and_load_private_library() on Linux, and export
  on Windows
+ Switch load_shared_library() to use locate_and_load_private_library()

git-svn-id: https://dynamorio.googlecode.com/svn/trunk@1827 49cc7528-f6fd-11dd-9d1a-b59b2e1864b6
Add later-loaded priv libs to the windbg command buffer.  Previously they
were never added at all.

git-svn-id: https://dynamorio.googlecode.com/svn/trunk@1828 49cc7528-f6fd-11dd-9d1a-b59b2e1864b6
Check return value of drsym_init() in drsym test so we can actually catch
errors there.

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

Handle CMAKE_CURRENT_LIST_DIR not being defined (it was added in CMake
2.8.3).  Also do not try to set the dynamic-scope cur-list-dir property
statically.

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

Only call private library DllMain for DLL_THREAD_DETACH when exiting the
executing thread, not for exiting other threads.

git-svn-id: https://dynamorio.googlecode.com/svn/trunk@1831 49cc7528-f6fd-11dd-9d1a-b59b2e1864b6
i#1054: Ignore curiosity reporting locks that have been deleted once

Curiosities during exit no longer trigger the locks_not_closed()
assertion with this change.

Fixes issue 1054.

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

git-svn-id: https://dynamorio.googlecode.com/svn/trunk@1832 49cc7528-f6fd-11dd-9d1a-b59b2e1864b6
Merge branch 'master' into move-elf-loader

Conflicts:
	core/linux/os.c
Merge branch 'move-elf-loader' into drdeploy-ptrace