OSDN Git Service

[yaml2obj] [MachO] Fill Segment and Section data
authorChris Bieneman <beanz@apple.com>
Fri, 20 May 2016 22:31:50 +0000 (22:31 +0000)
committerChris Bieneman <beanz@apple.com>
Fri, 20 May 2016 22:31:50 +0000 (22:31 +0000)
commitd60c9c7025234a503d251b92d2f1ce8d7a37e791
treecc3fdbb74416f23e1704fe51bc7e5ea9095fbf7f
parent85b08a7199b55f691dad3eda141b4d553e6cfa59
[yaml2obj] [MachO] Fill Segment and Section data

This fills section data with 0xDEADBEEF and segment data not inside a section with 0xBAADDA7A. This results in yaml2obj generating a matching size object file. Any additional bytes in the file are zero'd.

This is a starting point for populating the remaining segment data, and provides a hex viewable file that you can easily see the missing data in.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@270286 91177308-0d34-0410-b5e6-96231b3b80d8
tools/yaml2obj/yaml2macho.cpp