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

11 lines
496 B
Plaintext
Raw Normal View History

# ELF files can have mergeable strings which are global!, treat them as global
# defined atoms
RUN: lld-core -merge-strings=true -reader ELF %p/Inputs/globalconst.o.x86-64 | 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