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í 7c2866356f 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.
2 years ago
..
asm.txtar drop support for Go 1.18.x 2 years ago
basic.txtar drop support for Go 1.18.x 2 years ago
cgo.txtar drop support for Go 1.18.x 2 years ago
crossbuild.txtar drop support for Go 1.18.x 2 years ago
debugdir.txtar drop support for Go 1.18.x 2 years ago
embed.txtar drop support for Go 1.18.x 2 years ago
goenv.txtar drop support for Go 1.18.x 2 years ago
gogarble.txtar support obfuscating the syscall package 2 years ago
goversion.txtar drop support for Go 1.18.x 2 years ago
help.txtar drop support for Go 1.18.x 2 years ago
implement.txtar drop support for Go 1.18.x 2 years ago
imports.txtar drop support for Go 1.18.x 2 years ago
init.txtar drop support for Go 1.18.x 2 years ago
ldflags.txtar drop support for Go 1.18.x 2 years ago
linkname.txtar drop support for Go 1.18.x 2 years ago
literals.txtar drop support for Go 1.18.x 2 years ago
modinfo.txtar drop support for Go 1.18.x 2 years ago
plugin.txtar drop support for Go 1.18.x 2 years ago
position.txtar drop support for Go 1.18.x 2 years ago
reflect.txtar drop support for Go 1.18.x 2 years ago
reverse.txtar drop support for Go 1.18.x 2 years ago
seed-cache.txtar drop support for Go 1.18.x 2 years ago
seed.txtar drop support for Go 1.18.x 2 years ago
syntax.txtar drop support for Go 1.18.x 2 years ago
test.txtar drop support for Go 1.18.x 2 years ago
tiny.txtar drop support for Go 1.18.x 2 years ago
typeparams.txtar drop support for Go 1.18.x 2 years ago