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
pagran 22c177f088
remove all unexported func names with -tiny via the linker
The patch to the linker does this when generating the pclntab,
which is the binary section containing func names.
When `-tiny` is being used, we look for unexported funcs,
and set their names to the offset `0` - a shared empty string.

We also avoid including the original name in the binary,
which saves a significant amount of space.
The following stats were collected on GOOS=linux,
which show that `-tiny` is now about 4% smaller:

	go build                  1203067
	garble build               782336
	(old) garble -tiny build   688128
	(new) garble -tiny build   659456
2 years ago
..
asm.txtar support referencing package paths with periods in assembly 2 years ago
basic.txtar drop support for Go 1.18.x 3 years ago
cgo.txtar default to GOGARBLE=*, stop using GOPRIVATE 2 years ago
crossbuild.txtar default to GOGARBLE=*, stop using GOPRIVATE 2 years ago
debugdir.txtar default to GOGARBLE=*, stop using GOPRIVATE 2 years ago
embed.txtar default to GOGARBLE=*, stop using GOPRIVATE 2 years ago
goenv.txtar drop support for Go 1.18.x 3 years ago
gogarble.txtar default to GOGARBLE=*, stop using GOPRIVATE 2 years ago
goversion.txtar drop support for Go 1.18.x 3 years ago
help.txtar default to GOGARBLE=*, stop using GOPRIVATE 2 years ago
implement.txtar default to GOGARBLE=*, stop using GOPRIVATE 2 years ago
imports.txtar default to GOGARBLE=*, stop using GOPRIVATE 2 years ago
init.txtar drop support for Go 1.18.x 3 years ago
ldflags.txtar default to GOGARBLE=*, stop using GOPRIVATE 2 years ago
linker.txtar patch and rebuild cmd/link to modify the magic value in pclntab 2 years ago
linkname.txtar default to GOGARBLE=*, stop using GOPRIVATE 2 years ago
literals.txtar default to GOGARBLE=*, stop using GOPRIVATE 2 years ago
modinfo.txtar default to GOGARBLE=*, stop using GOPRIVATE 2 years ago
plugin.txtar default to GOGARBLE=*, stop using GOPRIVATE 2 years ago
position.txtar default to GOGARBLE=*, stop using GOPRIVATE 2 years ago
reflect.txtar avoid reflect method call panics with GOGARBLE=* 2 years ago
reverse.txtar CI: bump gotip to December 2022 2 years ago
seed-cache.txtar default to GOGARBLE=*, stop using GOPRIVATE 2 years ago
seed.txtar slightly reduce the range of hashed name lengths 2 years ago
syntax.txtar default to GOGARBLE=*, stop using GOPRIVATE 2 years ago
test.txtar support `garble test` in main packages 2 years ago
tiny.txtar remove all unexported func names with -tiny via the linker 2 years ago
typeparams.txtar default to GOGARBLE=*, stop using GOPRIVATE 2 years ago