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.
garble/testdata/script
Daniel Martí ff521782f1 obfuscate all assembly filenames
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 obfuscate all assembly filenames 3 years ago
basic.txtar drop support for Go 1.18.x 3 years ago
cgo.txtar drop support for Go 1.18.x 3 years ago
crossbuild.txtar drop support for Go 1.18.x 3 years ago
debugdir.txtar drop support for Go 1.18.x 3 years ago
embed.txtar drop support for Go 1.18.x 3 years ago
goenv.txtar drop support for Go 1.18.x 3 years ago
gogarble.txtar support obfuscating the syscall package 3 years ago
goversion.txtar drop support for Go 1.18.x 3 years ago
help.txtar drop support for Go 1.18.x 3 years ago
implement.txtar drop support for Go 1.18.x 3 years ago
imports.txtar drop support for Go 1.18.x 3 years ago
init.txtar drop support for Go 1.18.x 3 years ago
ldflags.txtar drop support for Go 1.18.x 3 years ago
linkname.txtar drop support for Go 1.18.x 3 years ago
literals.txtar drop support for Go 1.18.x 3 years ago
modinfo.txtar drop support for Go 1.18.x 3 years ago
plugin.txtar drop support for Go 1.18.x 3 years ago
position.txtar drop support for Go 1.18.x 3 years ago
reflect.txtar drop support for Go 1.18.x 3 years ago
reverse.txtar drop support for Go 1.18.x 3 years ago
seed-cache.txtar drop support for Go 1.18.x 3 years ago
seed.txtar immprove how hashWithCustomSalt comes up with its random lengths 3 years ago
syntax.txtar drop support for Go 1.18.x 3 years ago
test.txtar support `garble test` in main packages 3 years ago
tiny.txtar drop support for Go 1.18.x 3 years ago
typeparams.txtar drop support for Go 1.18.x 3 years ago