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/scripts
Daniel Martí 2ee6604408
replace the -p path when assembling (#247)
The asm tool runs twice for a package with assembly. The second time it
does, the path given to the -p flag matters, just like in the compiler,
as we generate an object file.

We don't have a -buildid flag in the asm tool, so obtaining the action
ID to obfuscate the package path with is a bit tricky. We store it from
transformCompile, and read it from transformAsm. See the detailed docs
for more.

This was the last "skip" line in the tests due to Go 1.16. After all PRs
are merged, one last PR documenting that 1.16 is supported will be sent,
closing the issue for good.

It's unclear why this wasn't an issue in Go 1.15. My best guess is that
the ABI changes only happened in Go 1.16, and this causes exported asm
funcs to start showing up in object files with their package paths.

Updates #124.
4 years ago
..
asm.txt replace the -p path when assembling (#247) 4 years ago
basic.txt obfuscate unexported names like exported ones (#227) 4 years ago
cgo.txt testdata: don't let tests rely on rewriting mod files 5 years ago
debugdir.txt reimplement import path obfuscation without goobj2 (#242) 4 years ago
goprivate.txt update the list of runtime-related packages for 1.16 (#246) 4 years ago
goversion.txt testdata: simplify goversion test (#232) 4 years ago
help.txt include a "garble version" test (#221) 4 years ago
implement.txt testdata: don't let tests rely on rewriting mod files 5 years ago
imports.txt properly fix obfuscated imports with their package names (#245) 4 years ago
init.txt testdata: add test case for init funcs in many files (#208) 4 years ago
ldflags.txt testdata: don't let tests rely on rewriting mod files 5 years ago
linkname.txt fixed some bugs related to additional linkname corner cases (#210) 4 years ago
literals.txt do not try to obfuscate huge literals (#204) 4 years ago
modinfo.txt testdata: don't let tests rely on rewriting mod files 5 years ago
plugin.txt testdata: don't let tests rely on rewriting mod files 5 years ago
position.txt simplify, improve, and test line obfuscation (#239) 4 years ago
reverse.txt reverse: support unexported names and package paths (#233) 4 years ago
seed.txt testdata: don't let tests rely on rewriting mod files 5 years ago
syntax.txt avoid panic on funcs that almost look like tests (#235) 4 years ago
test.txt reimplement import path obfuscation without goobj2 (#242) 4 years ago
tiny.txt reimplement import path obfuscation without goobj2 (#242) 4 years ago