hanchenye-llvm-project/lld/test/elf/mergeglobalatoms.test

12 lines
490 B
Plaintext
Raw Normal View History

# ELF files can have mergeable strings which are global!, treat them as global
# defined atoms
RUN: lld -flavor gnu -emit-yaml %p/Inputs/globalconst.o.x86-64 \
RUN: | FileCheck -check-prefix=globalatoms %s
globalatoms: - name: mystr
globalatoms: scope: global
globalatoms: type: constant
globalatoms: content: [ 66, 6F, 6F, 62, 61, 72, 00 ]
globalatoms: section-choice: custom-required
globalatoms: section-name: .rodata.str1.1