2017-06-06 14:38:32 +08:00
|
|
|
# REQUIRES: x86
|
|
|
|
# RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %s -o %t.o
|
|
|
|
# RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %S/Inputs/relocatable-comdat-multiple.s -o %t2.o
|
|
|
|
# RUN: ld.lld -r %t.o %t2.o -o %t
|
2019-05-01 13:49:01 +08:00
|
|
|
# RUN: llvm-readobj --elf-section-groups %t | FileCheck %s
|
2017-06-06 14:38:32 +08:00
|
|
|
|
|
|
|
# CHECK: Groups {
|
|
|
|
# CHECK-NEXT: Group {
|
|
|
|
# CHECK-NEXT: Name: .group
|
|
|
|
# CHECK-NEXT: Index: 2
|
2018-08-29 15:27:09 +08:00
|
|
|
# CHECK-NEXT: Link: 9
|
2018-03-13 08:07:53 +08:00
|
|
|
# CHECK-NEXT: Info: 1
|
2017-06-06 14:38:32 +08:00
|
|
|
# CHECK-NEXT: Type: COMDAT
|
|
|
|
# CHECK-NEXT: Signature: aaa
|
|
|
|
# CHECK-NEXT: Section(s) in group [
|
|
|
|
# CHECK-NEXT: .text.a
|
|
|
|
# CHECK-NEXT: .text.b
|
|
|
|
# CHECK-NEXT: ]
|
|
|
|
# CHECK-NEXT: }
|
|
|
|
# CHECK-NEXT: Group {
|
|
|
|
# CHECK-NEXT: Name: .group
|
|
|
|
# CHECK-NEXT: Index: 5
|
2018-08-29 15:27:09 +08:00
|
|
|
# CHECK-NEXT: Link: 9
|
2018-04-11 17:24:27 +08:00
|
|
|
# CHECK-NEXT: Info: 6
|
2017-06-06 14:38:32 +08:00
|
|
|
# CHECK-NEXT: Type: COMDAT
|
|
|
|
# CHECK-NEXT: Signature: bbb
|
|
|
|
# CHECK-NEXT: Section(s) in group [
|
|
|
|
# CHECK-NEXT: .text.c
|
|
|
|
# CHECK-NEXT: .text.d
|
|
|
|
# CHECK-NEXT: ]
|
|
|
|
# CHECK-NEXT: }
|
|
|
|
# CHECK-NEXT: }
|
|
|
|
|
|
|
|
.section .text.a,"axG",@progbits,aaa,comdat
|
|
|
|
.section .text.b,"axG",@progbits,aaa,comdat
|