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
|
2013-09-27 06:08:43 +08:00
|
|
|
type: code
|
|
|
|
size: 0
|
2014-01-27 11:09:26 +08:00
|
|
|
|
2012-02-23 05:56:59 +08:00
|
|
|
- name: free
|
|
|
|
load-name: libc.so
|
|
|
|
|
|
|
|
- name: fast_malloc
|
|
|
|
load-name: libc.so
|
|
|
|
can-be-null: at-runtime
|
2014-01-27 11:09:26 +08:00
|
|
|
|
2013-09-27 06:08:43 +08:00
|
|
|
- name: stdout
|
|
|
|
load-name: libc.so
|
|
|
|
type: data
|
|
|
|
size: 8
|
|
|
|
|
2012-02-23 05:56:59 +08:00
|
|
|
...
|
|
|
|
|
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
|
2013-09-27 06:08:43 +08:00
|
|
|
# CHECK: name: stdout
|
|
|
|
# CHECK: load-name: libc.so
|
|
|
|
# CHECK: type: data
|
|
|
|
# CHECK: size: 8
|
2012-02-23 05:56:59 +08:00
|
|
|
# CHECK: ...
|