<html><head><meta http-equiv="Content-Type" content="text/html charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">I can usually reproduce endian-ness bugs in the MachO YAML tools by adding:<div class=""><br class=""></div><div class="">IsLittleEndian:  false</div><div class=""><br class=""></div><div class="">Before the FileHeader is defined. That will generate a big-endian MachO, and most endian bugs go both ways.</div><div class=""><br class=""></div><div class="">I may have some time to look at this later this week.</div><div class=""><br class=""></div><div class="">-Chris</div><div class=""><br class=""><div><blockquote type="cite" class=""><div class="">On Jan 23, 2017, at 1:14 PM, Steven Wu via llvm-commits <<a href="mailto:llvm-commits@lists.llvm.org" class="">llvm-commits@lists.llvm.org</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><meta http-equiv="Content-Type" content="text/html charset=us-ascii" class=""><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div class="">CC Chris B.</div><div class=""><br class=""></div>Apparently, this commit fixes the powerpc bots:<div class=""><a href="http://lab.llvm.org:8011/builders/clang-ppc64be-linux/builds/3657" class="">http://lab.llvm.org:8011/builders/clang-ppc64be-linux/builds/3657</a></div><div class=""><a href="http://lab.llvm.org:8011/builders/clang-s390x-linux/builds/3723" class="">http://lab.llvm.org:8011/builders/clang-s390x-linux/builds/3723</a><br class=""><div class=""><br class=""></div><div class="">All I did is stripping out the segment load command and making the binary 64 bit x86_64. There might be some bug for ObjectYAML MachO format in these areas but I am unable to locate it just reading the code. Someone have access to IBM systems might be able to help?</div><div class=""><br class=""></div><div class="">Steven<br class=""><div class=""><br class=""><div class=""><blockquote type="cite" class=""><div class="">On Jan 23, 2017, at 12:42 PM, Steven Wu via llvm-commits <<a href="mailto:llvm-commits@lists.llvm.org" class="">llvm-commits@lists.llvm.org</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div class="">Author: steven_wu<br class="">Date: Mon Jan 23 14:42:17 2017<br class="">New Revision: 292826<br class=""><br class="">URL: <a href="http://llvm.org/viewvc/llvm-project?rev=292826&view=rev" class="">http://llvm.org/viewvc/llvm-project?rev=292826&view=rev</a><br class="">Log:<br class="">Attempt to fix the testcase in r292824<br class=""><br class="">Try fix the testcase r292824 (failing on some bots) by reduce it to the<br class="">minimal. If this fix doesn't work, I will revert this test.<br class=""><br class="">Modified:<br class="">    llvm/trunk/test/ObjectYAML/MachO/build_version_command.yaml<br class=""><br class="">Modified: llvm/trunk/test/ObjectYAML/MachO/build_version_command.yaml<br class="">URL: <a href="http://llvm.org/viewvc/llvm-project/llvm/trunk/test/ObjectYAML/MachO/build_version_command.yaml?rev=292826&r1=292825&r2=292826&view=diff" class="">http://llvm.org/viewvc/llvm-project/llvm/trunk/test/ObjectYAML/MachO/build_version_command.yaml?rev=292826&r1=292825&r2=292826&view=diff</a><br class="">==============================================================================<br class="">--- llvm/trunk/test/ObjectYAML/MachO/build_version_command.yaml (original)<br class="">+++ llvm/trunk/test/ObjectYAML/MachO/build_version_command.yaml Mon Jan 23 14:42:17 2017<br class="">@@ -2,38 +2,15 @@<br class=""><br class=""> --- !mach-o<br class=""> FileHeader:<br class="">-  magic:           0xFEEDFACE<br class="">-  cputype:         0x00000007<br class="">-  cpusubtype:      0x00000003<br class="">-  filetype:        0x00000004<br class="">-  ncmds:           2<br class="">-  sizeofcmds:      192<br class="">-  flags:           0x00000000<br class="">+  magic:           0xFEEDFACF<br class="">+  cputype:         0x01000007<br class="">+  cpusubtype:      0x80000003<br class="">+  filetype:        0x00000002<br class="">+  ncmds:           1<br class="">+  sizeofcmds:      32<br class="">+  flags:           0x00218085<br class="">+  reserved:        0x00000000<br class=""> LoadCommands:<br class="">-  - cmd:             LC_SEGMENT_64<br class="">-    cmdsize:         152<br class="">-    segname:         __TEXT<br class="">-    vmaddr:          4294967296<br class="">-    vmsize:          8192<br class="">-    fileoff:         0<br class="">-    filesize:        3099<br class="">-    maxprot:         7<br class="">-    initprot:        5<br class="">-    nsects:          1<br class="">-    flags:           0<br class="">-    Sections:<br class="">-      - sectname:        __text<br class="">-        segname:         __TEXT<br class="">-        addr:            0x0000000100001160<br class="">-        size:            3099<br class="">-        offset:          0x00001160<br class="">-        align:           4<br class="">-        reloff:          0x00000000<br class="">-        nreloc:          0<br class="">-        flags:           0x80000400<br class="">-        reserved1:       0x00000000<br class="">-        reserved2:       0x00000000<br class="">-        reserved3:       0x00000000<br class="">   - cmd:             LC_BUILD_VERSION<br class="">     cmdsize:         32<br class="">     platform:        2<br class=""><br class=""><br class="">_______________________________________________<br class="">llvm-commits mailing list<br class=""><a href="mailto:llvm-commits@lists.llvm.org" class="">llvm-commits@lists.llvm.org</a><br class=""><a href="http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-commits" class="">http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-commits</a><br class=""></div></div></blockquote></div><br class=""></div></div></div></div>_______________________________________________<br class="">llvm-commits mailing list<br class=""><a href="mailto:llvm-commits@lists.llvm.org" class="">llvm-commits@lists.llvm.org</a><br class="">http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-commits<br class=""></div></blockquote></div><br class=""></div></body></html>