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

36 lines
966 B
Plaintext

# RUN: lld-core -writer=mach-o -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