diff --git a/tools/obj2yaml/macho2yaml.cpp b/tools/obj2yaml/macho2yaml.cpp index e71f467e794..ad6969cdd4a 100644 --- a/tools/obj2yaml/macho2yaml.cpp +++ b/tools/obj2yaml/macho2yaml.cpp @@ -33,6 +33,7 @@ Expected> MachODumper::dump() { Y->Header.ncmds = Obj.getHeader().ncmds; Y->Header.sizeofcmds = Obj.getHeader().sizeofcmds; Y->Header.flags = Obj.getHeader().flags; + Y->Header.reserved = 0; for (auto load_command : Obj.load_commands()) { auto LC = make_unique();