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í 1267e2eced
fix link errors when importing crypto/ecdsa (#262)
First, we had some link errors such as:

	cannot find package J6OzO8GN (using -importcfg)

This was caused by the code that writes an updated importcfg, which did
not handle import maps well. That code is now fixed, and we also add an
obfuscatedImportPath method for clarity.

Once fixed, we ran into other link errors:

	Pw3g97ww.addVW: relocation target Pw3g97ww.addVWlarge not defined

After some digging, the cause of those is assembly code that we do not
yet support obfuscating. #261 tracks that.

Meanwhile, to fix "GOPRIVATE=* garble build" and to be able to have a
test for the original import path bug, we add the packages which use
that form of assembly code to runtimeRelated - math/big and
crypto/sha512. There might be more, but these were the ones found by
trying to link crypto/tls, a fairly common dependency.

Fixes #256.
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 fix link errors when importing crypto/ecdsa (#262) 4 years ago
goversion.txt formally add support for Go 1.16 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 ignore -ldflags=-X flags mentioning unknown packages 4 years ago
linkname.txt fixed some bugs related to additional linkname corner cases (#210) 4 years ago
literals.txt Literals: Skip constants with inferred values. 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 testdata: fix flakiness of tiny.txt on Windows (#252) 4 years ago