George Rimar | 2c0a7f0 | 2016-10-03 10:04:38 +0000 | [diff] [blame^] | 1 | # RUN: yaml2obj %s -o %t |
| 2 | # RUN: not ld.lld %t -o %tout 2>&1 | FileCheck %s |
| 3 | |
| 4 | ## In current lld implementation, we do not accept sh_addralign |
| 5 | ## larger than UINT32_MAX. |
| 6 | !ELF |
| 7 | FileHeader: |
| 8 | Class: ELFCLASS64 |
| 9 | Data: ELFDATA2LSB |
| 10 | Type: ET_REL |
| 11 | Machine: EM_X86_64 |
| 12 | Sections: |
| 13 | - Name: .text |
| 14 | Type: SHT_PROGBITS |
| 15 | Flags: [ SHF_ALLOC, SHF_EXECINSTR ] |
| 16 | AddressAlign: 0x1000000000000001 |
| 17 | Content: "00000000" |
| 18 | |
| 19 | # CHECK: section sh_addralign is too large |