dlopen on Linux seems to not check the current working directory (dotnet/coreclr...
authorJarret Shook <jashoo@microsoft.com>
Fri, 30 Aug 2019 23:56:05 +0000 (16:56 -0700)
committerGitHub <noreply@github.com>
Fri, 30 Aug 2019 23:56:05 +0000 (16:56 -0700)
commitac8d6e234a96afb1d5268dab43488db3ae54dc14
treee5d4f2880e0937dcb70495c64360af2115da9c89
parent397b4e1e0fff70b562514c54f74f8d7d500b1833
dlopen on Linux seems to not check the current working directory (dotnet/coreclr#26235)

* dlopen on Linux seems to not check the current working directory

Therefore change the path of coredistools to an absolute path and
calculate it  based on the path of the current dll.

* Address pr feedback

* Small change to increase ptr

* Fix windows build break

* Correctly fix windows build

Commit migrated from https://github.com/dotnet/coreclr/commit/d951f5f0ee8862f954c69a4fd9e05184bad15d25
src/coreclr/src/ToolBox/superpmi/superpmi/neardiffer.cpp