llvm-project/lld/test/shared-library-basic.objtxt

30 lines
692 B
Plaintext

# RUN: lld-core %s | FileCheck %s
#
# Test that shared-library symbols are parsed and preserved
#
---
shared-library-atoms:
- name: malloc
load-name: libc.so
- name: free
load-name: libc.so
- name: fast_malloc
load-name: libc.so
can-be-null: at-runtime
...
# CHECK: shared-library-atoms:
# CHECK: name: malloc
# CHECK: load-name: libc.so
# CHECK: name: free
# CHECK: load-name: libc.so
# CHECK: name: fast_malloc
# CHECK: load-name: libc.so
# CHECK: can-be-null: at-runtime
# CHECK: ...