]> Cypherpunks repositories - gostls13.git/commitdiff
cmd/link/internal/arm64: increase the function alignment to 16
authorfanzha02 <fannie.zhang@arm.com>
Wed, 25 Mar 2020 03:11:24 +0000 (11:11 +0800)
committerCherry Zhang <cherryyz@google.com>
Wed, 25 Mar 2020 15:37:25 +0000 (15:37 +0000)
On arm64, a function's address is 16 bytes aligned, and
the assembler aligns the size of function symbol to 16 bytes,
so to keep the consistent, this patch changes the function
alignment in the linker to 16 bytes.

Change-Id: I4d1e89a56200453b7b586fe3f4656bada7544214
Reviewed-on: https://go-review.googlesource.com/c/go/+/225397
Reviewed-by: eric fang <eric.fang@arm.com>
Reviewed-by: Cherry Zhang <cherryyz@google.com>
Run-TryBot: Cherry Zhang <cherryyz@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>

src/cmd/link/internal/arm64/l.go

index 50b88e479fbc20eaa63e33d50cbf5fd81ea32d77..5f3530335ee1fd603f5af6719f5f74e182926a24 100644 (file)
@@ -64,7 +64,7 @@ package arm64
 const (
        maxAlign  = 32 // max data alignment
        minAlign  = 1  // min data alignment
-       funcAlign = 8
+       funcAlign = 16
 )
 
 /* Used by ../internal/ld/dwarf.go */