llvm-capstone/lld/test/mach-o/exe-segment-overlap.yaml
Fangrui Song b159906a9a [test] Change llvm-readobj -long-option to --long-option or well-known short options. NFC
Also change some options that have different semantics (cause confusion) in llvm-readelf mode:

-s => -S
-t => --symbols
-sd => --section-data

llvm-svn: 359651
2019-05-01 05:49:01 +00:00

45 lines
1.1 KiB
YAML

# 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: )