forked from OSchip/llvm-project
44 lines
1.3 KiB
Plaintext
44 lines
1.3 KiB
Plaintext
# RUN: lld -core %s %p/Inputs/gnulinkonce-remaining-undef.objtxt \
|
|
# RUN: %p/Inputs/gnulinkonce-remaining-undef2.objtxt | FileCheck %s
|
|
|
|
#
|
|
# Test that gnu linkonce sections are parsed and the first section selected for
|
|
# symbol resolution. The second file which has the same gnu linkonce section has
|
|
# a unresolved undefined symbol. lets make sure that the symbol is kept around
|
|
# in the final link and remains undefined.
|
|
#
|
|
|
|
---
|
|
defined-atoms:
|
|
- name: f1
|
|
scope: global
|
|
type: code
|
|
- name: f2
|
|
scope: global
|
|
type: code
|
|
- name: g1
|
|
scope: global
|
|
type: code
|
|
- name: d1
|
|
scope: global
|
|
type: data
|
|
- name: g1
|
|
scope: global
|
|
type: gnu-linkonce
|
|
references:
|
|
- kind: group-child
|
|
target: f1
|
|
- kind: group-child
|
|
target: f2
|
|
- kind: group-child
|
|
target: g1
|
|
- kind: group-child
|
|
target: d1
|
|
...
|
|
|
|
#CHECK: - name: anotherfunction
|
|
#CHECK: scope: global
|
|
#CHECK: type: data
|
|
#CHECK: undefined-atoms:
|
|
#CHECK: - name: f3
|