-
-
Notifications
You must be signed in to change notification settings - Fork 270
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
support obfuscating the syscall package
One more package that further unblocks obfuscating the runtime. The issue was the TODO we already had about go:linkname directives with just one argument, which are used in the syscall package. While here, factor out the obfuscation of linkname directives into transformLinkname, as it was starting to get a bit complex. We now support debug logging as well, while still being able to use "early returns" for some cases where we bail out. We also need listPackage to treat all runtime sub-packages like it does runtime itself, as `runtime/internal/syscall` linknames into `syscall` without it being a dependency as well. Finally, add a regression test that, without the fix, properly spots that the syscall package was not obfuscated: FAIL: testdata/script/gogarble.txtar:41: unexpected match for ["syscall.RawSyscall6"] in out Updates #193.
- Loading branch information
Showing
3 changed files
with
76 additions
and
52 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