xref: /aosp_15_r20/external/llvm/test/MC/ELF/comdat-reloc.s (revision 9880d6810fe72a1726cb53787c6711e909410d58)
1*9880d681SAndroid Build Coastguard Worker// RUN: llvm-mc -filetype=obj -triple x86_64-pc-linux-gnu %s -o - | llvm-readobj -s -sd | FileCheck %s
2*9880d681SAndroid Build Coastguard Worker
3*9880d681SAndroid Build Coastguard Worker  .text
4*9880d681SAndroid Build Coastguard Worker  .globl  hello
5*9880d681SAndroid Build Coastguard Worker  .type  hello,@function
6*9880d681SAndroid Build Coastguard Workerhello:
7*9880d681SAndroid Build Coastguard Worker  call  world
8*9880d681SAndroid Build Coastguard Worker  ret
9*9880d681SAndroid Build Coastguard Worker
10*9880d681SAndroid Build Coastguard Worker  .section  .text.world,"axG",@progbits,world,comdat
11*9880d681SAndroid Build Coastguard Worker  .type  world,@function
12*9880d681SAndroid Build Coastguard Workerworld:
13*9880d681SAndroid Build Coastguard Worker  call  doctor
14*9880d681SAndroid Build Coastguard Worker  ret
15*9880d681SAndroid Build Coastguard Worker
16*9880d681SAndroid Build Coastguard Worker// CHECK:  Name: .group
17*9880d681SAndroid Build Coastguard Worker// CHECK-NOT: SectionData
18*9880d681SAndroid Build Coastguard Worker// CHECK: SectionData
19*9880d681SAndroid Build Coastguard Worker// CHECK-NEXT: 0000: 01000000 05000000 06000000
20*9880d681SAndroid Build Coastguard Worker
21*9880d681SAndroid Build Coastguard Worker// CHECK: Index: 5
22*9880d681SAndroid Build Coastguard Worker// CHECK-NEXT: Name: .text.world
23*9880d681SAndroid Build Coastguard Worker// CHECK-NOT: Section {
24*9880d681SAndroid Build Coastguard Worker// CHECK: SHF_GROUP
25*9880d681SAndroid Build Coastguard Worker
26*9880d681SAndroid Build Coastguard Worker// CHECK: Index: 6
27*9880d681SAndroid Build Coastguard Worker// CHECK-NEXT: Name: .rela.text.world
28*9880d681SAndroid Build Coastguard Worker// CHECK-NOT: Section {
29*9880d681SAndroid Build Coastguard Worker// CHECK: SHF_GROUP
30