Add build config and docs for generating Windows link order files

There are three pieces to this puzzle:

1) Passing the -finstrument-functions-after-inlining flag to all
   compiler invocations.

2) Implementing the __cyg_profile_func_enter function.

3) Making all .exe and .dll targets link in the library that provides
   that function.

This patch implements those three, losely modeled on how the Android
build works, and adds documentation on how to use this to update the
order files.

Bug: 728324
Change-Id: I778bc8c0c2800244b8f18037197d62223ef92203
Commit-Queue: Hans Wennborg <>
Reviewed-by: Brett Wilson <>
Reviewed-by: Reid Kleckner <>
Cr-Commit-Position: refs/heads/master@{#519429}
9 files changed