llvm-project/lld/test/darwin/hello-world.objtxt

37 lines
1.0 KiB
Plaintext

# RUN: lld -flavor darwin -arch x86_64 -macosx_version_min 10.8 %s -o %t && \
# RUN: llvm-nm %t | FileCheck %s
#
# Test that hello-world can be linked into a mach-o executable
#
---
defined-atoms:
- name: _main
type: code
scope: global
content: [ 55, 48, 89, E5, 48, 8D, 3D, 00,
00, 00, 00, E8, 00, 00, 00, 00,
31, C0, 5D, C3 ]
references:
- offset: 7
kind: ripRel32
target: LC1
- offset: 12
kind: branch32
target: _printf
- ref-name: LC1
type: c-string
merge: by-content
content: [ 68, 65, 6C, 6C, 6F, 0A, 00 ]
shared-library-atoms:
- name: _printf
load-name: /usr/lib/libSystem.B.dylib
...
# CHECK: {{[0-9a-f]+}} T _main
# CHECK: 00000000 U _printf
# CHECK: 00000000 U dyld_stub_binder