1# RUN: ld64.lld -arch x86_64 -r %s -o %t -print_atoms | FileCheck %s 2# RUN: ld64.lld -arch x86_64 -r %t -o %t2 -print_atoms | FileCheck %s 3# 4# Test that alignment info round trips through -r 5# 6 7--- !mach-o 8arch: x86_64 9file-type: MH_OBJECT 10flags: [ MH_SUBSECTIONS_VIA_SYMBOLS ] 11sections: 12 - segment: __TEXT 13 section: __text 14 type: S_REGULAR 15 attributes: [ S_ATTR_PURE_INSTRUCTIONS, S_ATTR_SOME_INSTRUCTIONS ] 16 alignment: 16 17 address: 0x0000000000000000 18 content: [ 0x90, 0x90, 0x90, 0xC3, 0xC3, 0xC3 ] 19local-symbols: 20 - name: _f1 21 type: N_SECT 22 sect: 1 23 value: 0x0000000000000003 24 - name: _f2 25 type: N_SECT 26 sect: 1 27 value: 0x0000000000000004 28 - name: _f3 29 type: N_SECT 30 sect: 1 31 value: 0x0000000000000005 32... 33 34# CHECK: defined-atoms: 35# CHECK: - content: [ 90, 90, 90 ] 36# CHECK: alignment: 16 37# CHECK: - name: _f1 38# CHECK: content: [ C3 ] 39# CHECK: alignment: 3 mod 16 40# CHECK: - name: _f2 41# CHECK: content: [ C3 ] 42# CHECK: alignment: 4 mod 16 43# CHECK: - name: _f3 44# CHECK: content: [ C3 ] 45# CHECK: alignment: 5 mod 16 46