1# RUN: ld64.lld -arch x86_64 %s -o %t -e start %p/Inputs/x86_64/libSystem.yaml 2# RUN: llvm-readobj --sections %t | FileCheck %s 3 4# Make sure data gets put at offset 5 6--- !native 7defined-atoms: 8 - name: start 9 scope: global 10 content: [ 90 ] 11 12 - name: _s1 13 type: data 14 content: [ 31, 32, 33, 34 ] 15 16 - name: _s2 17 type: zero-fill 18 size: 8192 19 20 - name: _s3 21 type: zero-fill 22 size: 100 23 24 - name: _s4 25 type: data 26 content: [ 01 ] 27 28 29# CHECK-LABEL: Section { 30# CHECK: Name: __text 31# CHECK: Segment: __TEXT 32# CHECK: Size: 0x1 33# CHECK: Offset: 0 34 35# CHECK-LABEL: Section { 36# CHECK: Name: __data 37# CHECK: Segment: __DATA 38# CHECK: Size: 0x5 39# CHECK: Offset: 4096 40 41# CHECK-LABEL: Section { 42# CHECK: Name: __bss 43# CHECK: Segment: __DATA 44# CHECK: Size: 0x2064 45# CHECK: Offset: 0 46