summaryrefslogtreecommitdiffstats
path: root/lld/test/elf/mergeglobalatoms.test
blob: 06c0e071301750c09cbd070c9c4d5efed22eafa7 (plain)
1
2
3
4
5
6
7
8
9
10
11
# ELF files can have mergeable strings which are global!, treat them as global
# defined atoms
RUN: lld -flavor gnu --output-filetype=yaml %p/Inputs/globalconst.o.x86-64 \
RUN: --noinhibit-exec | 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
OpenPOWER on IntegriCloud