Skip to content

Commit

Permalink
move text_hash in delocate.go
Browse files Browse the repository at this point in the history
  • Loading branch information
dkostic committed Dec 9, 2024
1 parent 65808f8 commit be51baf
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions util/fipstools/delocate/delocate.go
Original file line number Diff line number Diff line change
Expand Up @@ -1951,6 +1951,13 @@ func transform(w stringWriter, includes []string, inputs []inputFile, startEndDe
}

w.WriteString(".text\n")
w.WriteString(".type BORINGSSL_bcm_text_hash, @object\n")
w.WriteString(".size BORINGSSL_bcm_text_hash, 32\n")
w.WriteString("BORINGSSL_bcm_text_hash:\n")
for _, b := range fipscommon.UninitHashValue {
w.WriteString(".byte 0x" + strconv.FormatUint(uint64(b), 16) + "\n")
}

if startEndDebugDirectives {
var fileTrailing string
if fileDirectivesContainMD5 {
Expand Down Expand Up @@ -2139,13 +2146,6 @@ func transform(w stringWriter, includes []string, inputs []inputFile, startEndDe
}
}

w.WriteString(".type BORINGSSL_bcm_text_hash, @object\n")
w.WriteString(".size BORINGSSL_bcm_text_hash, 32\n")
w.WriteString("BORINGSSL_bcm_text_hash:\n")
for _, b := range fipscommon.UninitHashValue {
w.WriteString(".byte 0x" + strconv.FormatUint(uint64(b), 16) + "\n")
}

return nil
}

Expand Down

0 comments on commit be51baf

Please sign in to comment.