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
Dominic Breuker b587d8c01a
use the "simple" obfuscator for large literals
Changes literal obfuscation such that literals of any size will be obfuscated,
but beyond `maxSize` we only use the `simple` obfuscator.
This one seems to apply AND, OR, or XOR operators byte-wise and should be safe to use,
unlike some of the other obfuscators which are quadratic on the literal size or worse.

The test for literals is changed a bit to verify that obfuscation is applied.
The code written to the `extra_literals.go` file by the test helper now ensures
that Go does not optimize the literals away when we build the binary.
We also append a unique string to all literals so that we can test that
an unobfuscated build contains this string while an obfuscated build does not.
1 year ago
..
asm.txtar drop support for Go 1.19 1 year ago
atomic.txtar ensure the alignment of sync/atomic types works 1 year ago
basic.txtar drop support for Go 1.19 1 year ago
cgo.txtar drop support for Go 1.19 1 year ago
crossbuild.txtar drop support for Go 1.19 1 year ago
debugdir.txtar drop support for Go 1.19 1 year ago
embed.txtar drop support for Go 1.19 1 year ago
goenv.txtar drop support for Go 1.19 1 year ago
gogarble.txtar drop support for Go 1.19 1 year ago
goversion.txtar drop support for Go 1.19 1 year ago
help.txtar drop support for Go 1.19 1 year ago
implement.txtar drop support for Go 1.19 1 year ago
imports.txtar drop support for Go 1.19 1 year ago
init.txtar drop support for Go 1.19 1 year ago
ldflags.txtar drop support for Go 1.19 1 year ago
linker.txtar use the host's GOEXE when building the linker 1 year ago
linkname.txtar drop support for Go 1.19 1 year ago
list_error.txtar avoid panic when a package's imports cannot be loaded 1 year ago
literals.txtar use the "simple" obfuscator for large literals 1 year ago
modinfo.txtar drop support for Go 1.19 1 year ago
plugin.txtar drop support for Go 1.19 1 year ago
position.txtar drop support for Go 1.19 1 year ago
reflect.txtar drop support for Go 1.19 1 year ago
reverse.txtar drop bits of code to support Go 1.19 1 year ago
run.txtar support `garble run` 1 year ago
seed-cache.txtar drop support for Go 1.19 1 year ago
seed.txtar print chosen seed when building with -seed=random 1 year ago
syntax.txtar drop support for Go 1.19 1 year ago
test.txtar drop support for Go 1.19 1 year ago
tiny.txtar drop support for Go 1.19 1 year ago
typeparams.txtar drop support for Go 1.19 1 year ago