Files
clang-p2996/lld/test/ELF/invalid/section-alignment.test
Fangrui Song 7db789b570 [ELF] Replace a few Fatal with Err
In LLD_IN_TEST=2 mode, when a thread calls Fatal, there will be no
output even if the process exits with code 1. Change a few Fatal to
recoverable Err.
2025-01-25 16:00:51 -08:00

22 lines
635 B
Plaintext

# RUN: yaml2obj %s -o %t
# RUN: not ld.lld %t -o /dev/null 2>&1 | FileCheck %s
# RUN: ld.lld %t -o /dev/null --noinhibit-exec 2>&1 | FileCheck %s
## In current lld implementation, we do not accept sh_addralign
## larger than UINT32_MAX.
!ELF
FileHeader:
Class: ELFCLASS64
Data: ELFDATA2LSB
Type: ET_REL
Machine: EM_X86_64
Sections:
- Name: .text
Type: SHT_PROGBITS
Flags: [ SHF_ALLOC, SHF_EXECINSTR ]
AddressAlign: 0x1000000000000000
Offset: 0x100
Content: "00000000"
# CHECK: section sh_addralign is too large