Arm64 stubs alignment is 2, not 4.

This matches the behaviour of ld64 when looking at the alignment of the stubs section in the final image.

llvm-svn: 278398
This commit is contained in:
Pete Cooper 2016-08-11 20:18:05 +00:00
parent 0fdb2daa8d
commit 732f1ef9de
2 changed files with 9 additions and 2 deletions

View File

@ -275,8 +275,8 @@ const ArchHandler::StubInfo ArchHandler_arm64::_sStubInfo = {
// GOT pointer to dyld_stub_binder
{ Reference::KindArch::AArch64, pointer64, 0, 0 },
// arm64 code alignment 2^2
2,
// arm64 code alignment 2^1
1,
// Stub size and code
12,

View File

@ -92,3 +92,10 @@ undefined-symbols:
# CHECK: (undefined) external _fprintf (from libSystem)
# CHECK: (undefined) external dyld_stub_binder (from libSystem)
# CHECK: {{[0-9a-f]+}} (__TEXT,__text) external _main
# CHECK-PRIVATE-HEADER: sectname __stubs
# CHECK-PRIVATE-HEADER-NEXT: segname __TEXT
# CHECK-PRIVATE-HEADER-NEXT: addr
# CHECK-PRIVATE-HEADER-NEXT: size
# CHECK-PRIVATE-HEADER-NEXT: offset
# CHECK-PRIVATE-HEADER-NEXT: align 2^1 (2)