blob: 2c0aa7a5aae99914a6b4b3ffe8fb106fcb516d57 [file] [log] [blame]
# RUN: lld-core -platform darwin -stubs_pass %s -o %t && llvm-nm %t | FileCheck %s
#
# Test that hello-world can be linked into a mach-o executable
#
---
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 ]
fixups:
- offset: 7
kind: pcrel32
target: LC1
- offset: 12
kind: call32
target: _printf
- ref-name: LC1
scope: hidden
type: c-string
content: [ 68, 65, 6C, 6C, 6F, 0A, 00 ]
- name: _printf
definition: shared-library
load-name: /usr/lib/libSystem.B.dylib
...
# CHECK: {{[0-9a-f]+}} s _main
# CHECK: 00000000 u _printf
# CHECK: 00000000 u dyld_stub_binder