You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
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. |
3 years ago | |
---|---|---|
.. | ||
asm.txtar | 3 years ago | |
basic.txtar | 3 years ago | |
cgo.txtar | 3 years ago | |
crossbuild.txtar | 3 years ago | |
debugdir.txtar | 3 years ago | |
embed.txtar | 3 years ago | |
goenv.txtar | 3 years ago | |
gogarble.txtar | 3 years ago | |
goversion.txtar | 3 years ago | |
help.txtar | 3 years ago | |
implement.txtar | 3 years ago | |
imports.txtar | 3 years ago | |
init.txtar | 3 years ago | |
ldflags.txtar | 3 years ago | |
linkname.txtar | 3 years ago | |
literals.txtar | 3 years ago | |
modinfo.txtar | 3 years ago | |
plugin.txtar | 3 years ago | |
position.txtar | 3 years ago | |
reflect.txtar | 3 years ago | |
reverse.txtar | 3 years ago | |
seed-cache.txtar | 3 years ago | |
seed.txtar | 3 years ago | |
syntax.txtar | 3 years ago | |
test.txtar | 3 years ago | |
tiny.txtar | 3 years ago | |
typeparams.txtar | 3 years ago |