summaryrefslogtreecommitdiffstats
path: root/lld/test/ELF/invalid/non-terminated-string.test
blob: 82e94fe1457c8a7c69c624250c970e1a6227dc20 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
# RUN: yaml2obj %s -o %t
# RUN: not ld.lld %t -o %tout 2>&1 | FileCheck %s

# CHECK: {{.*}}:(.merge): string is not null terminated

!ELF
FileHeader:
  Class:           ELFCLASS64
  Data:            ELFDATA2LSB
  OSABI:           ELFOSABI_FREEBSD
  Type:            ET_REL
  Machine:         EM_X86_64
Sections:
  - Type:            SHT_PROGBITS
    Name:            .merge
    Flags:           [ SHF_ALLOC, SHF_MERGE, SHF_STRINGS ]
    AddressAlign:    0x04
    Content:         "AABB"
    EntSize:         0x2
OpenPOWER on IntegriCloud