-
-
Notifications
You must be signed in to change notification settings - Fork 269
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
We were still leaking the filenames for assembly files. In our existing asm.txtar test's output binary, the string `test/main/garble_main_amd64.s` was present. This leaked full import paths on one hand, and the filenames of each assembly file on the other. We avoid this in Go files by using `/*line` directives, but those are not supported in assembly files. Instead, obfuscate the paths in the temporary directory. Note that we still need a separate temporary directory per package, because otherwise any included header files might collide. We must remove the `main` package panic in obfuscatedImportPath, as we now need to use that function for all packages. While here, remove the outdated comment about `-trimpath`. Fixes #605.
- Loading branch information
Showing
3 changed files
with
14 additions
and
14 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