summaryrefslogtreecommitdiff
path: root/src/util/fipstools/break-hash.go
diff options
context:
space:
mode:
Diffstat (limited to 'src/util/fipstools/break-hash.go')
-rw-r--r--src/util/fipstools/break-hash.go6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/util/fipstools/break-hash.go b/src/util/fipstools/break-hash.go
index 53e1c5cb..8c817d8d 100644
--- a/src/util/fipstools/break-hash.go
+++ b/src/util/fipstools/break-hash.go
@@ -56,6 +56,10 @@ func do(outPath, inPath string) error {
symbols, err := object.Symbols()
if err != nil {
+ fmt.Fprintf(os.Stderr, "%s\nTrying dynamic symbols\n", err)
+ symbols, err = object.DynamicSymbols()
+ }
+ if err != nil {
return errors.New("failed to parse symbols: " + err.Error())
}
@@ -123,7 +127,7 @@ func do(outPath, inPath string) error {
newHash := mac.Sum(nil)
fmt.Printf("Found start of module at offset 0x%x (VMA 0x%x):\n", start-textSection.Addr, start)
- fmt.Printf(hex.Dump(moduleText[:128]))
+ fmt.Println(hex.Dump(moduleText[:128]))
fmt.Printf("\nHash of module was: %x\n", hashWas)
fmt.Printf("Hash of corrupted module is: %x\n", newHash)