| # Check handling of section alignment. |
| # RUN: yaml2obj -format=elf %s > %t-obj |
| # RUN: lld -flavor old-gnu -target arm64 -o %t-exe %t-obj |
| # RUN: llvm-objdump -h %t-exe | FileCheck %s |
| |
| # CHECK: 8 .data 00000000 0000000000402000 DATA |
| |
| !ELF |
| FileHeader: !FileHeader |
| Class: ELFCLASS64 |
| Data: ELFDATA2LSB |
| Type: ET_REL |
| Machine: EM_AARCH64 |
| |
| Sections: |
| - Name: .text |
| Type: SHT_PROGBITS |
| Content: '' |
| AddressAlign: 0 |
| Flags: [SHF_ALLOC, SHF_EXECINSTR] |
| - Name: .bss |
| Type: SHT_NOBITS |
| Flags: [ SHF_WRITE, SHF_ALLOC ] |
| AddressAlign: 1 |
| Size: 0x1000 |
| - Name: .data |
| Type: SHT_PROGBITS |
| Content: '' |
| AddressAlign: 4096 |
| Flags: [SHF_ALLOC, SHF_WRITE] |
| |
| Symbols: |
| Global: |
| - Name: _start |
| Section: .text |
| Value: 0x0 |
| Size: 4 |