]> granicus.if.org Git - llvm/commit
[JITLink][MachO] Mark atoms in sections 'no-dead-strip' set live by default.
authorLang Hames <lhames@gmail.com>
Fri, 10 May 2019 22:24:37 +0000 (22:24 +0000)
committerLang Hames <lhames@gmail.com>
Fri, 10 May 2019 22:24:37 +0000 (22:24 +0000)
commit77ebf7c3a9871e89b24cc75c3bba0e8e5267e4e5
tree773018b5ca6ac36ce037eebabe22f7ccf9c7831f
parent7cf9cd64e41aade956f3d7fa4a0d7c0ab5bc76bd
[JITLink][MachO] Mark atoms in sections 'no-dead-strip' set live by default.

If a MachO section has the no-dead-strip attribute set then its atoms should
be preserved, regardless of whether they're public or referenced elsewhere in
the object.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@360477 91177308-0d34-0410-b5e6-96231b3b80d8
lib/ExecutionEngine/JITLink/MachOAtomGraphBuilder.cpp
lib/ExecutionEngine/JITLink/MachOAtomGraphBuilder.h
test/ExecutionEngine/JITLink/X86/MachO_x86-64_relocations.s