summaryrefslogtreecommitdiffstats
path: root/lld/test/ELF/section-align-0.test
blob: 232d43a304cdae30c3c6e527d9ccb794307e480b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
# RUN: yaml2obj %s -o %t
# RUN: ld.lld %t -o /dev/null

# Verify that lld can handle sections with an alignment of zero.

!ELF
FileHeader:
  Class:           ELFCLASS64
  Data:            ELFDATA2LSB
  Type:            ET_REL
  Machine:         EM_X86_64
Sections:
  - Name:            .text
    Type:            SHT_PROGBITS
    AddressAlign:    0

Symbols:
  - Name:          _start
    Section:       .text
    Binding:       STB_GLOBAL
OpenPOWER on IntegriCloud