summaryrefslogtreecommitdiffstats
path: root/llvm/tools/yaml2obj/yaml2macho.cpp
diff options
context:
space:
mode:
authorChris Bieneman <beanz@apple.com>2016-05-26 21:29:39 +0000
committerChris Bieneman <beanz@apple.com>2016-05-26 21:29:39 +0000
commit44474c48ac666a58646251ce50500cec48ff2132 (patch)
tree9788b65cde51b67b84f531632bb028bce3951a48 /llvm/tools/yaml2obj/yaml2macho.cpp
parentf6d502d819100ceb2d685c1d17fa72f7d767c3c3 (diff)
downloadbcm5719-llvm-44474c48ac666a58646251ce50500cec48ff2132.tar.gz
bcm5719-llvm-44474c48ac666a58646251ce50500cec48ff2132.zip
[obj2yaml][yaml2obj] Support for MachO lazy bindings
This adds support for YAML round tripping dyld info lazy bindings. The storage and format of these is the same as regular bind opcodes, they are just interpreted differently by dyld, and can have DONE opcodes in the middle of the opcode lists. llvm-svn: 270920
Diffstat (limited to 'llvm/tools/yaml2obj/yaml2macho.cpp')
-rw-r--r--llvm/tools/yaml2obj/yaml2macho.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/llvm/tools/yaml2obj/yaml2macho.cpp b/llvm/tools/yaml2obj/yaml2macho.cpp
index 199515d5c10..57f36d6a90d 100644
--- a/llvm/tools/yaml2obj/yaml2macho.cpp
+++ b/llvm/tools/yaml2obj/yaml2macho.cpp
@@ -315,6 +315,8 @@ Error MachOWriter::writeLinkEditData(raw_ostream &OS) {
writeBindOpcodes(OS, DyldInfoOnlyCmd->bind_off, LinkEdit.BindOpcodes);
writeBindOpcodes(OS, DyldInfoOnlyCmd->weak_bind_off,
LinkEdit.WeakBindOpcodes);
+ writeBindOpcodes(OS, DyldInfoOnlyCmd->lazy_bind_off,
+ LinkEdit.LazyBindOpcodes);
// Fill to the end of the string table
ZeroToOffset(OS, SymtabCmd->stroff + SymtabCmd->strsize);
OpenPOWER on IntegriCloud