1 # RUN: yaml2obj %s -o %t.o
2 # RUN: ld.lld %t.o %t.o -o %t -r
3 # RUN: llvm-readobj -S %t | FileCheck %s
5 # CHECK: Name: .text.foo
6 # CHECK: Name: .rela.text.foo
8 ## YAML below corresponds to following asm code:
9 ## .section .text,"axG",@progbits,foo,comdat
11 ## gas 2.27 does not include .rela.text to group in that case:
12 ## COMDAT group section [ 1] `.group' [foo] contains 1 sections:
27 - SectionOrType: GRP_COMDAT
28 - SectionOrType: .text.foo
31 Flags: [ SHF_ALLOC, SHF_EXECINSTR, SHF_GROUP ]
32 - Name: .rela.text.foo
34 Flags: [ SHF_INFO_LINK ]