2016-06-28 04:17:08 +08:00
|
|
|
# RUN: yaml2obj %s -o %t
|
2018-07-03 01:48:23 +08:00
|
|
|
# RUN: ld.lld %t -o /dev/null
|
2015-09-05 08:25:33 +08:00
|
|
|
|
|
|
|
# Verify that lld can handle sections with an alignment of zero.
|
|
|
|
|
2016-06-28 04:17:08 +08:00
|
|
|
!ELF
|
2015-09-05 08:25:33 +08:00
|
|
|
FileHeader:
|
|
|
|
Class: ELFCLASS64
|
|
|
|
Data: ELFDATA2LSB
|
|
|
|
Type: ET_REL
|
|
|
|
Machine: EM_X86_64
|
|
|
|
Sections:
|
|
|
|
- Name: .text
|
|
|
|
Type: SHT_PROGBITS
|
|
|
|
AddressAlign: 0
|
|
|
|
|
|
|
|
Symbols:
|
2019-04-03 22:54:22 +08:00
|
|
|
- Name: _start
|
|
|
|
Section: .text
|
|
|
|
Binding: STB_GLOBAL
|