summaryrefslogtreecommitdiff
path: root/lld/test/ELF/invalid/section-alignment.test
blob: 32e673f82992bd3249061b335cd53fe694867724 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
# RUN: yaml2obj %s -o %t
# RUN: not ld.lld %t -o /dev/null 2>&1 | FileCheck %s
# RUN: ld.lld %t -o /dev/null --noinhibit-exec 2>&1 | FileCheck %s

## In current lld implementation, we do not accept sh_addralign
## larger than UINT32_MAX.
!ELF
FileHeader:
  Class:           ELFCLASS64
  Data:            ELFDATA2LSB
  Type:            ET_REL
  Machine:         EM_X86_64
Sections:
  - Name:            .text
    Type:            SHT_PROGBITS
    Flags:           [ SHF_ALLOC, SHF_EXECINSTR ]
    AddressAlign:    0x1000000000000000
    Offset:          0x100
    Content:         "00000000"

# CHECK: section sh_addralign is too large