Move .align directives next to their labels for ARM.

2ab24a2d40fd193a25d7c94072596a1180cbb460 added sections to ARM assembly
files. However, in cases where .align directives were not next to the
labels that they were intended to apply to, the section directives would
cause them to be ignored.

Change-Id: I32117f6747ff8545b80c70dd3b8effdc6e6f67e0
Reviewed-on: https://boringssl-review.googlesource.com/6050
Reviewed-by: David Benjamin <davidben@chromium.org>
Reviewed-by: Adam Langley <agl@google.com>
This commit is contained in:
Adam Langley 2015-09-30 10:38:38 -07:00
parent 3b27843b7c
commit 72d9cba7cb
3 changed files with 3 additions and 3 deletions

View File

@ -71,8 +71,8 @@ my ($zero,$rcon,$mask,$in0,$in1,$tmp,$key)=
$code.=<<___;
.align 5
.pushsection .text.${prefix}_set_encrypt_key,"ax",%progbits
.align 5
.Lrcon:
.long 0x01,0x01,0x01,0x01
.long 0x0c0f0e0d,0x0c0f0e0d,0x0c0f0e0d,0x0c0f0e0d // rotate-n-splat

View File

@ -85,8 +85,8 @@ $code=<<___;
.code 32
#if __ARM_MAX_ARCH__>=7
.align 5
.pushsection .text.bn_mul_mont,"ax",%progbits
.align 5
.LOPENSSL_armcap:
.word OPENSSL_armcap_P-.Lbn_mul_mont
.popsection

View File

@ -214,10 +214,10 @@ K256:
.word OPENSSL_armcap_P-.Lsha256_block_data_order
#endif
.popsection
.align 5
.global sha256_block_data_order
.type sha256_block_data_order,%function
.align 5
sha256_block_data_order:
.Lsha256_block_data_order:
#if __ARM_ARCH__<7