2018-02-17 05:16:57 +08:00
|
|
|
# RUN: ld64.lld -arch x86_64 %s -o %t -e start %p/Inputs/x86_64/libSystem.yaml
|
2014-06-30 17:49:30 +08:00
|
|
|
# RUN: llvm-readobj -sections %t | FileCheck %s
|
|
|
|
|
|
|
|
# Make sure data gets put at offset
|
|
|
|
|
|
|
|
--- !native
|
|
|
|
defined-atoms:
|
|
|
|
- name: start
|
|
|
|
scope: global
|
|
|
|
content: [ 90 ]
|
|
|
|
|
|
|
|
- name: _s1
|
|
|
|
type: data
|
|
|
|
content: [ 31, 32, 33, 34 ]
|
|
|
|
|
|
|
|
- name: _s2
|
|
|
|
type: zero-fill
|
|
|
|
size: 8192
|
|
|
|
|
|
|
|
- name: _s3
|
|
|
|
type: zero-fill
|
|
|
|
size: 100
|
|
|
|
|
|
|
|
- name: _s4
|
|
|
|
type: data
|
|
|
|
content: [ 01 ]
|
|
|
|
|
2014-07-17 03:49:02 +08:00
|
|
|
|
2014-06-30 17:49:30 +08:00
|
|
|
# CHECK-LABEL: Section {
|
|
|
|
# CHECK: Name: __text
|
|
|
|
# CHECK: Segment: __TEXT
|
|
|
|
# CHECK: Size: 0x1
|
|
|
|
# CHECK: Offset: 0
|
|
|
|
|
|
|
|
# CHECK-LABEL: Section {
|
|
|
|
# CHECK: Name: __data
|
|
|
|
# CHECK: Segment: __DATA
|
|
|
|
# CHECK: Size: 0x5
|
|
|
|
# CHECK: Offset: 4096
|
|
|
|
|
|
|
|
# CHECK-LABEL: Section {
|
2014-11-06 09:14:12 +08:00
|
|
|
# CHECK: Name: __bss
|
2014-06-30 17:49:30 +08:00
|
|
|
# CHECK: Segment: __DATA
|
2014-11-18 08:30:29 +08:00
|
|
|
# CHECK: Size: 0x2064
|
|
|
|
# CHECK: Offset: 0
|