delocate: .size BORINGSSL_bcm_text_hash, not OPENSSL_ia32cap_addr.

Change-Id: I4e34dabe302f7dacdf04a89052ad9fe9254a1b81
Reviewed-on: https://boringssl-review.googlesource.com/15404
Reviewed-by: David Benjamin <davidben@google.com>
Commit-Queue: David Benjamin <davidben@google.com>
CQ-Verified: CQ bot account: commit-bot@chromium.org <commit-bot@chromium.org>
This commit is contained in:
Matthew Braithwaite 2017-04-22 23:46:23 -07:00 committed by CQ bot account: commit-bot@chromium.org
parent 8da870a9e0
commit f131301413

View File

@ -422,7 +422,7 @@ func transform(lines []string, symbols map[string]bool) (ret []string) {
// Emit an array for storing the module hash.
ret = append(ret, ".type BORINGSSL_bcm_text_hash,@object")
ret = append(ret, ".size OPENSSL_ia32cap_addr,32")
ret = append(ret, ".size BORINGSSL_bcm_text_hash,32")
ret = append(ret, "BORINGSSL_bcm_text_hash:")
for _, b := range uninitHashValue {
ret = append(ret, ".byte 0x"+strconv.FormatUint(uint64(b), 16))
@ -453,7 +453,7 @@ func handleBSSSection(lines []string, source *lineSource) (map[string]string, []
localSymbol := ".L" + symbol + "_local_target"
lines = append(lines, line)
lines = append(lines, localSymbol + ":")
lines = append(lines, localSymbol+":")
accessors[symbol] = localSymbol
continue