1 # RUN: yaml2obj %s > %t
2 # RUN: not llvm-objcopy %t %t2 2>&1 | FileCheck %s
3 # CHECK: error: invalid alignment 1 of group section '.group'
5 # In this test, we check that llvm-objcopy reports an error
6 # for SHT_GROUP section with invalid alignment (not a multiple of 4).
15 ## It is not important for passing the test case to have this placeholder,
16 ## but having it would trigger ubsan failure when writing the group section
17 ## into a file if the error tested would not be reported by llvm-objcopy.
20 Flags: [ SHF_ALLOC, SHF_EXECINSTR ]
21 AddressAlign: 0x0000000000000001
26 AddressAlign: 0x0000000000000001
29 - SectionOrType: GRP_COMDAT
30 - SectionOrType: .text.foo
33 Flags: [ SHF_ALLOC, SHF_EXECINSTR, SHF_GROUP ]
34 AddressAlign: 0x0000000000000001