OSDN Git Service

[RuntimeDyld] Apply padding and alignment bumps to all sections with stubs, and
authorLang Hames <lhames@gmail.com>
Thu, 30 May 2019 19:59:20 +0000 (19:59 +0000)
committerLang Hames <lhames@gmail.com>
Thu, 30 May 2019 19:59:20 +0000 (19:59 +0000)
commitb2a17d0a26b5b7d5229e85f8116dc014d83dc690
treefcdf8f3ed8a0c2d396c64b3f9dcaade74228c70d
parentab622e5a2e4248304f4639ff58f078050462a966
[RuntimeDyld] Apply padding and alignment bumps to all sections with stubs, and
increase the MachO/x86-64 stub alignment to 8.

Stub alignment should be guaranteed for any section containing RuntimeDyld
stubs/GOT-entries. To do this we should pad and align all sections containing
stubs, not just code sections.

This commit also bumps the MachO/x86-64 stub alignment to 8, so that GOT entries
will be aligned.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@362139 91177308-0d34-0410-b5e6-96231b3b80d8
lib/ExecutionEngine/RuntimeDyld/RuntimeDyld.cpp
lib/ExecutionEngine/RuntimeDyld/Targets/RuntimeDyldMachOX86_64.h
test/ExecutionEngine/RuntimeDyld/X86/MachO_x86-64_PIC_relocations.s