[PATCH] [lld][mach-o] binary reader and writer

kledzik at apple.com kledzik at apple.com
Mon Nov 4 17:27:29 PST 2013


Hi shankarke, Bigcheese, ruiu,

This patch adds support for converting normalized mach-o to and from binary
mach-o. It also changes WriterMachO (which previously directly wrote a 
mach-o binary given a set of Atoms) to instead do it in two steps. The first 
step uses normalizedFromAtoms() to convert Atoms to normalized mach-o, and the
second step uses writeBinary() which to generate the mach-o binary file.

http://llvm-reviews.chandlerc.com/D2101

Files:
  test/darwin/hello-world.objtxt
  include/lld/ReaderWriter/MachOLinkingContext.h
  unittests/MachOTests/MachONormalizedFileBinaryWriterTests.cpp
  unittests/MachOTests/MachONormalizedFileBinaryReaderTests.cpp
  unittests/MachOTests/CMakeLists.txt
  lib/ReaderWriter/PECOFF/PECOFFLinkingContext.cpp
  lib/ReaderWriter/MachO/MachONormalizedFileFromAtoms.cpp
  lib/ReaderWriter/MachO/MachONormalizedFileBinaryReader.cpp
  lib/ReaderWriter/MachO/MachONormalizedFileBinaryUtils.h
  lib/ReaderWriter/MachO/MachOLinkingContext.cpp
  lib/ReaderWriter/MachO/MachONormalizedFileBinaryWriter.cpp
  lib/ReaderWriter/MachO/WriterMachO.cpp
  lib/ReaderWriter/MachO/CMakeLists.txt
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D2101.1.patch
Type: text/x-patch
Size: 220739 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20131104/e0782e25/attachment.bin>


More information about the llvm-commits mailing list