<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">Hi Rafael<div class=""><br class=""></div><div class="">I don’t see anyway to dump out MachO load commands using llvm-readobj. The feature is not implemented yet. I am happy to rewrite my test in the future when readobj is ready. There exists tests for assembly with directive already for iOS and OS X. This patch will not change their behavior. Update the patch to add iOS test and bare darwin macho tests.</div><div class=""><br class=""></div><div class="">Thanks</div><div class=""><br class=""></div><div class="">Steven</div><div class=""><br class=""></div><div class="">Here is the updated test:</div><div class=""><br class=""></div><div class="">// RUN: llvm-mc -triple x86_64-apple-macosx10.10.0 %s -filetype=obj -o - | macho-dump | FileCheck %s<br class="">// RUN: llvm-mc -triple x86_64-apple-ios8.0.0 %s -filetype=obj -o - | macho-dump | FileCheck %s --check-prefix=CHECK-IOS<br class="">// RUN: llvm-mc -triple x86_64-apple-darwin %s -filetype=obj -o - | macho-dump | FileCheck %s --check-prefix=CHECK-DARWIN<br class=""><br class="">// Test version-min load command should be inferred from triple and should always be generated on Darwin<br class="">// CHECK:  (('command', 36)<br class="">// CHECK:   ('size', 16)<br class="">// CHECK:   ('version, 657920)<br class="">// CHECK:   ('sdk, 0)<br class="">// CHECK:  ),<br class=""><br class="">// CHECK-IOS:  (('command', 37)<br class="">// CHECK-IOS:   ('size', 16)<br class="">// CHECK-IOS:   ('version, 524288)<br class="">// CHECK-IOS:   ('sdk, 0)<br class="">// CHECK-IOS:  ),<br class=""><br class=""><br class="">// CHECK-DARWIN: ('num_load_commands', 1)<br class="">// CHECK-DARWIN-NOT: 'version'<br class=""><br class=""></div><div class=""><br class=""></div><div class=""></div></body></html>