1# RUN: ld64.lld -arch x86_64 %s -o %t %p/Inputs/x86_64/libSystem.yaml 2# RUN: llvm-readobj --sections --section-data %t | FileCheck %s 3 4--- !native 5defined-atoms: 6 - name: _main 7 scope: global 8 content: [ 90 ] 9 10 - name: _s2 11 type: data 12 content: [ 31, 32, 33, 34 ] 13 14 - name: _kustom 15 scope: global 16 type: unknown 17 content: [ 01, 02, 03, 04, 05, 06, 07, 08 ] 18 section-choice: custom-required 19 section-name: __CUST/__custom 20 21 22# CHECK-LABEL: Section { 23# CHECK: Name: __text 24# CHECK: Segment: __TEXT 25# CHECK: Size: 0x1 26# CHECK: Offset: 4095 27 28# CHECK-LABEL: Section { 29# CHECK: Name: __data 30# CHECK: Segment: __DATA 31# CHECK: Size: 0x4 32# CHECK: Offset: 4096 33# CHECK: SectionData ( 34# CHECK-NEXT: 0000: 31323334 35# CHECK-NEXT: ) 36 37# CHECK-LABEL: Section { 38# CHECK: Name: __custom{{ }} 39# CHECK: Segment: __CUST{{ }} 40# CHECK: Size: 0x8 41# CHECK: Offset: 8192 42# CHECK: SectionData ( 43# CHECK-NEXT: 0000: 01020304 05060708 44# CHECK-NEXT: ) 45