From: Rafael Espindola Date: Wed, 15 Apr 2015 17:24:06 +0000 (+0000) Subject: Make it explicit which sections these relocations are in. X-Git-Url: http://plrg.eecs.uci.edu/git/?p=oota-llvm.git;a=commitdiff_plain;h=11df480f67ca7042cf7b7b4d4a43745ab270779b Make it explicit which sections these relocations are in. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@235022 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/test/MC/ARM/eh-directive-section-multiple-func.s b/test/MC/ARM/eh-directive-section-multiple-func.s index 9f632b8b89a..425cbd7d015 100644 --- a/test/MC/ARM/eh-directive-section-multiple-func.s +++ b/test/MC/ARM/eh-directive-section-multiple-func.s @@ -69,10 +69,14 @@ func2: @ CHECK: 0000: 00000000 B0B0B000 00000000 B0B0B000 |................| @ CHECK: ) @ CHECK: } + +@ CHECK: Section { +@ CHECK: Name: .rel.ARM.extab.TEST1 @ CHECK: Relocations [ @ CHECK: 0x0 R_ARM_PREL31 __gxx_personality_v0 0x0 @ CHECK: 0x8 R_ARM_PREL31 __gxx_personality_v0 0x0 @ CHECK: ] +@ CHECK: } @------------------------------------------------------------------------------- @@ -89,18 +93,21 @@ func2: @ CHECK: 0000: 00000000 00000000 04000000 08000000 |................| @ CHECK: ) @ CHECK: } -@ CHECK: ] @------------------------------------------------------------------------------- @ The first word of each entry should be relocated to .TEST1 section. @ The second word of each entry should be relocated to @ .ARM.extab.TESET1 section. @------------------------------------------------------------------------------- + +@ CHECK: Section { +@ CHECK: Name: .rel.ARM.exidx.TEST1 @ CHECK: Relocations [ @ CHECK: 0x0 R_ARM_PREL31 .TEST1 0x0 @ CHECK: 0x4 R_ARM_PREL31 .ARM.extab.TEST1 0x0 @ CHECK: 0x8 R_ARM_PREL31 .TEST1 0x0 @ CHECK: 0xC R_ARM_PREL31 .ARM.extab.TEST1 0x0 @ CHECK: ] +@ CHECK: } @------------------------------------------------------------------------------- diff --git a/test/MC/ARM/eh-directive-section.s b/test/MC/ARM/eh-directive-section.s index 7c1f32ee39d..309067a080f 100644 --- a/test/MC/ARM/eh-directive-section.s +++ b/test/MC/ARM/eh-directive-section.s @@ -64,9 +64,13 @@ func2: @ CHECK: 0000: 00000000 B0B0B000 |........| @ CHECK: ) @ CHECK: } + +@ CHECK: Section { +@ CHECK: Name: .rel.ARM.extab.TEST1 @ CHECK: Relocations [ @ CHECK: 0x0 R_ARM_PREL31 __gxx_personality_v0 0x0 @ CHECK: ] +@ CHECK: } @------------------------------------------------------------------------------- @@ -89,10 +93,14 @@ func2: @ CHECK: 0000: 00000000 00000000 |........| @ CHECK: ) @ CHECK: } + +@ CHECK: Section { +@ CHECK: Name: .rel.ARM.exidx.TEST1 @ CHECK: Relocations [ @ CHECK: 0x0 R_ARM_PREL31 .TEST1 0x0 @ CHECK: 0x4 R_ARM_PREL31 .ARM.extab.TEST1 0x0 @ CHECK: ] +@ CHECK: } @------------------------------------------------------------------------------- @@ -115,9 +123,13 @@ func2: @ CHECK: 0000: 00000000 B0B0B000 |........| @ CHECK: ) @ CHECK: } + +@ CHECK: Section { +@ CHECK: Name: .rel.ARM.extabTEST2 @ CHECK: Relocations [ @ CHECK: 0x0 R_ARM_PREL31 __gxx_personality_v0 0x0 @ CHECK: ] +@ CHECK: } @------------------------------------------------------------------------------- @@ -140,11 +152,14 @@ func2: @ CHECK: 0000: 00000000 00000000 |........| @ CHECK: ) @ CHECK: } -@ CHECK: ] + +@ CHECK: Section { +@ CHECK: Name: .rel.ARM.exidxTEST2 @ CHECK: Relocations [ @ CHECK: 0x0 R_ARM_PREL31 TEST2 0x0 @ CHECK: 0x4 R_ARM_PREL31 .ARM.extabTEST2 0x0 @ CHECK: ] +@ CHECK: }