[PATCH] D29044: Add LC_BUILD_VERSION load command

Steven Wu via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Jan 23 11:38:19 PST 2017


steven_wu created this revision.

Add a new load command LC_BUILD_VERSION. It is a generic version of
LC_*_VERSION_MIN load_command used on Apple platforms. Instead of having
a seperate load command for each platform, LC_BUILD_VERSION is recording
platform info as an enum. It also records SDK version, min_os, and tools
that used to build the binary.

rdar://problem/29781291


https://reviews.llvm.org/D29044

Files:
  include/llvm/Object/MachO.h
  include/llvm/ObjectYAML/MachOYAML.h
  include/llvm/Support/MachO.def
  include/llvm/Support/MachO.h
  lib/Object/MachOObjectFile.cpp
  lib/ObjectYAML/MachOYAML.cpp
  test/MC/MachO/darwin-version-min-load-command.s
  test/ObjectYAML/MachO/build_version_command.yaml
  test/tools/llvm-objdump/X86/invalid-macho-build-version.yaml
  test/tools/llvm-objdump/X86/macho-build-version.yaml
  tools/llvm-objdump/MachODump.cpp
  tools/llvm-readobj/MachODumper.cpp
  tools/obj2yaml/macho2yaml.cpp
  tools/yaml2obj/yaml2macho.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D29044.85438.patch
Type: text/x-patch
Size: 21297 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20170123/b0965f0a/attachment.bin>


More information about the llvm-commits mailing list