aboutsummaryrefslogtreecommitdiff
path: root/test/ELF/invalid/merge-zero-size.test
blob: 564ed44068efdee42e5359b09e579083fe5bea24 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
# REQUIRES: x86

# RUN: yaml2obj %s -o %t.o

# Test that we accept a zero sh_entsize for SHF_MERGE section.
# RUN: ld.lld %t.o -o %t.exe

!ELF
FileHeader:
  Class:           ELFCLASS64
  Data:            ELFDATA2LSB
  OSABI:           ELFOSABI_FREEBSD
  Type:            ET_REL
  Machine:         EM_X86_64
Sections:
  - Type:            SHT_PROGBITS
    Name:            .strings
    Flags:           [ SHF_ALLOC, SHF_MERGE, SHF_STRINGS ]
    AddressAlign:    0x04
    Content:         "FFFFFFFFFFFFFFFF"
    EntSize:         0x0