forked from dotnet/runtime
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix ilasm, ildasm, crossgen and others launch from PATH (dotnet#40791)
* Fix ilasm, ildasm and crossgen launch from PATH When trying to launch ilasm, ildasm, crossgen or any tool using PAL_Initialize that are on the current PATH just by their file names, they were crashing with SIGSEGV. The problem was that the current exe path was extracted incorrectly in that case. This change fixes the problem using the same methods that corerun uses to figure out the current exe path. * Add missing FreeBSD headers * Reflect PR feedback * Update src/coreclr/src/pal/src/init/pal.cpp * Fix typo in Solaris version of the code Co-authored-by: Jan Kotas <[email protected]>
- Loading branch information
Showing
3 changed files
with
153 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters