[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)
commit0e124b37bd7fa42ab1087668b1fa7c35a9684deb
treedbe815eb28e0f51b3af0f3f1539a81e5f52457c7
parent5f0f4e3ae03afa84034c01ddaac559e0b5cb6532
[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.

llvm-svn: 362139
llvm/lib/ExecutionEngine/RuntimeDyld/RuntimeDyld.cpp
llvm/lib/ExecutionEngine/RuntimeDyld/Targets/RuntimeDyldMachOX86_64.h
llvm/test/ExecutionEngine/RuntimeDyld/X86/MachO_x86-64_PIC_relocations.s