2013-04-05 02:59:24 +08:00
|
|
|
# RUN: lld -core %s | FileCheck %s
|
2012-02-23 05:56:59 +08:00
|
|
|
|
|
|
|
#
|
|
|
|
# Test that shared-library symbols are parsed and preserved
|
|
|
|
#
|
|
|
|
|
|
|
|
---
|
2013-01-05 10:22:35 +08:00
|
|
|
shared-library-atoms:
|
2012-02-23 05:56:59 +08:00
|
|
|
- name: malloc
|
|
|
|
load-name: libc.so
|
|
|
|
|
|
|
|
- name: free
|
|
|
|
load-name: libc.so
|
|
|
|
|
|
|
|
- name: fast_malloc
|
|
|
|
load-name: libc.so
|
|
|
|
can-be-null: at-runtime
|
|
|
|
|
|
|
|
...
|
|
|
|
|
2013-01-05 10:22:35 +08:00
|
|
|
# CHECK: shared-library-atoms:
|
2012-02-23 05:56:59 +08:00
|
|
|
# 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: ...
|