Add CMake options for easier profiling on Linux

KEEP_LOCAL_SYMBOLS keeps local symbols in .symtab to get better symbols
from with objdump -d.  perf calls out to objdump -d occasionally, and
it's nice to have this Just Work.

KEEP_FRAME_POINTERS sets -fno-omit-frame-pointer, which I'm using with
perf record -g to get callstacks.  perf only does frame pointer walks
because as a sampling profiler it has to fast.
fixed issue 1084
- adjust dr_unmap_file map range to the whole file on Windows

git-svn-id: https://dynamorio.googlecode.com/svn/trunk@1946 49cc7528-f6fd-11dd-9d1a-b59b2e1864b6
i#1092: Remove the drdeploy symlink before creating it

Also remove stale install exclusion.

Fixes issue 1092.

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

git-svn-id: https://dynamorio.googlecode.com/svn/trunk@1947 49cc7528-f6fd-11dd-9d1a-b59b2e1864b6
Fix MSVC generator errors about generate_nativeexec

We have splitfile asm targets for nativeexec.c and nativexec.appdll.c,
so I'm using NAME instead of NAME_WE to distinguish them.

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

git-svn-id: https://dynamorio.googlecode.com/svn/trunk@1948 49cc7528-f6fd-11dd-9d1a-b59b2e1864b6
Fix native_exec hotp assertion

My last change accidentally flipped the logic of the assert, as well as
leaving behind an undeclared variable error for real_retaddr.

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

git-svn-id: https://dynamorio.googlecode.com/svn/trunk@1949 49cc7528-f6fd-11dd-9d1a-b59b2e1864b6
i#786: Support linking with GNU gold

Call gcc -Wl,--version and look for "GNU gold".  If we find it, we can
use command line options to get our preferred base and special symbols
instead of the linker script.

We have to keep the linker script support around for dynamorio_so_start
and older GNU ld versions.

Gold currently warns on our private string routine replacements in
unit_tests, but links successfully.

Fixes issue 786.

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

git-svn-id: https://dynamorio.googlecode.com/svn/trunk@1950 49cc7528-f6fd-11dd-9d1a-b59b2e1864b6
Merge branch 'master' into profiling-cmake
single advanced option: PROFILE
endif()
Merge branch 'master' into native-exec-retstack
Merge branch 'native-exec-retstack' into native-exec-interp-native

Conflicts:
	core/native_exec.c
Merge branch 'native-exec-interp-native' into native-exec-export-tailcaller
Merge branch 'profiling-cmake' into native-exec-export-tailcaller