llvm-project/lld/test/core/custom-section.objtxt

35 lines
770 B
Plaintext

# RUN: lld -core %s | FileCheck %s
#
# Test that custom sections are preserved
#
---
defined-atoms:
- name: _foo1
scope: global
section-choice: content
- name: _foo2
scope: global
section-choice: custom
section-name: __foozle
- name: _foo3
scope: global
section-choice: custom-required
section-name: __boozle
...
# CHECK: name: _foo1
# CHECK-NOT: section-name:
# CHECK: name: _foo2
# CHECK: section-choice: custom
# CHECK: section-name: __foozle
# CHECK: name: _foo3
# CHECK: section-choice: custom-required
# CHECK: section-name: __boozle
# CHECK: ...