Copied from https://github.com/ErichStyger/mcuoneclipse.git, directory Examples/KDS/FRDM-K64F120M/FRDM-K64F_Profiling/Profiling, commit 9b7eedddd8b24968128582aedc63be95b61f782c, dated Mon Jan 9 16:56:17 2017 +0100. (This is in turn adapted from Cygwin, and can be found in newlib distributions.)