Home | History | Annotate | Download | only in llvm-objdump
      1 # REQUIRES: xar
      2 # RUN: llvm-objdump -macho -archive-headers -section __LLVM,__bundle %p/Inputs/LLVM-bundle.macho-x86_64 | FileCheck %s
      3 
      4 # CHECK: For (__LLVM,__bundle) section: xar header
      5 # CHECK:                   magic XAR_HEADER_MAGIC
      6 # CHECK:                    size 28
      7 # CHECK:                 version 1
      8 # CHECK:   toc_length_compressed 542
      9 # CHECK: toc_length_uncompressed 1250
     10 # CHECK:               cksum_alg XAR_CKSUM_SHA1
     11 # CHECK: For (__LLVM,__bundle) section: xar archive files:
     12 # CHECK:    1664 1
     13 # CHECK: For (__LLVM,__bundle) section: xar table of contents:
     14 # CHECK: <?xml version="1.0" encoding="UTF-8"?>
     15 # CHECK: <xar>
     16 # CHECK:  <subdoc subdoc_name="Ld">
     17 # CHECK:   <version>1.0</version>
     18 # CHECK:   <architecture>x86_64</architecture>
     19 # CHECK:   <platform>MacOSX</platform>
     20 # CHECK:   <sdkversion>10.11.0</sdkversion>
     21 # CHECK:   <dylibs>
     22 # CHECK:    <lib>libSystem.dylib</lib>
     23 # CHECK:   </dylibs>
     24 # CHECK:   <link-options>
     25 # CHECK:    <option>-execute</option>
     26 # CHECK:    <option>-macosx_version_min</option>
     27 # CHECK:    <option>10.11.0</option>
     28 # CHECK:    <option>-e</option>
     29 # CHECK:    <option>_main</option>
     30 # CHECK:    <option>-executable_path</option>
     31 # CHECK:    <option>hello</option>
     32 # CHECK:   </link-options>
     33 # CHECK:  </subdoc>
     34 # CHECK:  <toc>
     35 # CHECK:   <checksum style="sha1">
     36 # CHECK:    <size>20</size>
     37 # CHECK:    <offset>0</offset>
     38 # CHECK:   </checksum>
     39 # CHECK:   <creation-time>2016-05-23T20:49:10</creation-time>
     40 # CHECK:   <file id="1">
     41 # CHECK:    <name>1</name>
     42 # CHECK:    <type>file</type>
     43 # CHECK:    <data>
     44 # CHECK:     <archived-checksum style="sha1">a319940ff5f5248ca8b44cf7b4b65e7dd49a47ab</archived-checksum>
     45 # CHECK:     <extracted-checksum style="sha1">a319940ff5f5248ca8b44cf7b4b65e7dd49a47ab</extracted-checksum>
     46 # CHECK:     <size>1664</size>
     47 # CHECK:     <offset>20</offset>
     48 # CHECK:     <encoding style="application/octet-stream"/>
     49 # CHECK:     <length>1664</length>
     50 # CHECK:    </data>
     51 # CHECK:    <file-type>Bitcode</file-type>
     52 # CHECK:    <clang>
     53 # CHECK:     <cmd>-triple</cmd>
     54 # CHECK:     <cmd>x86_64-apple-macosx10.11.0</cmd>
     55 # CHECK:     <cmd>-emit-obj</cmd>
     56 # CHECK:     <cmd>-disable-llvm-optzns</cmd>
     57 # CHECK:    </clang>
     58 # CHECK:   </file>
     59 # CHECK:  </toc>
     60 # CHECK: </xar>
     61