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