2018-02-17 05:16:57 +08:00
|
|
|
# RUN: ld64.lld -arch x86_64 %s -o %t %p/Inputs/x86_64/libSystem.yaml
|
2014-06-30 17:49:33 +08:00
|
|
|
# RUN: llvm-readobj -sections -section-data %t | FileCheck %s
|
|
|
|
|
|
|
|
--- !native
|
|
|
|
defined-atoms:
|
2014-10-09 09:01:16 +08:00
|
|
|
- name: _main
|
2014-06-30 17:49:33 +08:00
|
|
|
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
|
2014-10-25 06:19:22 +08:00
|
|
|
# CHECK: Offset: 4095
|
2014-06-30 17:49:33 +08:00
|
|
|
|
|
|
|
# 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: )
|