From c846f35a04382a4ca352132f0ed09620b0132c42 Mon Sep 17 00:00:00 2001 From: Rafael Espindola Date: Thu, 30 Apr 2015 13:08:09 +0000 Subject: [PATCH] Check the entire content of the comdat group. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@236230 91177308-0d34-0410-b5e6-96231b3b80d8 --- test/MC/ARM/eh-directive-section-comdat.s | 22 +++++++++++++++++----- 1 file changed, 17 insertions(+), 5 deletions(-) diff --git a/test/MC/ARM/eh-directive-section-comdat.s b/test/MC/ARM/eh-directive-section-comdat.s index 3f24ddf2864..a397acd37de 100644 --- a/test/MC/ARM/eh-directive-section-comdat.s +++ b/test/MC/ARM/eh-directive-section-comdat.s @@ -47,13 +47,15 @@ func1: @ CHECK: Type: SHT_GROUP (0x11) @ CHECK: Flags [ (0x0) @ CHECK: ] +@ CHECK: Size: 24 @ CHECK: SectionData ( @------------------------------------------------------------------------------- -@ The second, third, and fourth word should correspond to the section index -@ of .TEST1, .ARM.extab.TEST1, and .ARM.exidx.TEST1. +@ These are the section indexes of .TEST1, .ARM.extab.TEST1, .ARM.exidx.TEST1, +@ .rel.ARM.extab.TEST1, and .rel.ARM.exidx.TEST1. @------------------------------------------------------------------------------- -@ CHECK: 0000: 01000000 06000000 07000000 08000000 |................| -@ CHECK: ) +@ CHECK-NEXT: 0000: 01000000 06000000 07000000 08000000 +@ CHECK-NEXT: 0010: 09000000 0A000000 +@ CHECK-NEXT: ) @ CHECK: } @@ -109,9 +111,19 @@ func1: @ CHECK: ] @ CHECK: Link: 6 @ CHECK: } -@ CHECK: ] +@ CHECK: Section { +@ CHECK: Index: 9 +@ CHECK-NEXT: Name: .rel.ARM.extab.TEST1 +@ CHECK: } + +@ CHECK: Section { +@ CHECK: Index: 10 +@ CHECK-NEXT: Name: .rel.ARM.exidx.TEST1 +@ CHECK: } + +@ CHECK: ] @------------------------------------------------------------------------------- @ Check symbol func1. It should be weak binding, and belong to .TEST1 section. -- 2.34.1