diff options
Diffstat (limited to 'test/ELF/section-align-0.test')
| -rw-r--r-- | test/ELF/section-align-0.test | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/test/ELF/section-align-0.test b/test/ELF/section-align-0.test new file mode 100644 index 000000000000..fc27ee95fd4b --- /dev/null +++ b/test/ELF/section-align-0.test @@ -0,0 +1,19 @@ +# RUN: yaml2obj -format elf %s -o %t +# RUN: ld.lld %t -o %tout + +# Verify that lld can handle sections with an alignment of zero. + +FileHeader: + Class: ELFCLASS64 + Data: ELFDATA2LSB + Type: ET_REL + Machine: EM_X86_64 +Sections: + - Name: .text + Type: SHT_PROGBITS + AddressAlign: 0 + +Symbols: + Global: + - Name: _start + Section: .text |
