aboutsummaryrefslogtreecommitdiffstats
path: root/test/MC/ELF/cfi.s
diff options
context:
space:
mode:
authorRafael Espindola <rafael.espindola@gmail.com>2010-12-17 00:28:02 +0000
committerRafael Espindola <rafael.espindola@gmail.com>2010-12-17 00:28:02 +0000
commitdfe125cc9cfd524575973daa297c9aad10470390 (patch)
treeee82ea6ccc59228794b5d57e66c9d0399d8af269 /test/MC/ELF/cfi.s
parent3ee33aa6f9b961e1c7b6dbb57df6fd53b68fbac4 (diff)
downloadexternal_llvm-dfe125cc9cfd524575973daa297c9aad10470390.zip
external_llvm-dfe125cc9cfd524575973daa297c9aad10470390.tar.gz
external_llvm-dfe125cc9cfd524575973daa297c9aad10470390.tar.bz2
"Fix" FDE alignment to match what gas does.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@122006 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/MC/ELF/cfi.s')
-rw-r--r--test/MC/ELF/cfi.s23
1 files changed, 17 insertions, 6 deletions
diff --git a/test/MC/ELF/cfi.s b/test/MC/ELF/cfi.s
index df62d7d..5657925 100644
--- a/test/MC/ELF/cfi.s
+++ b/test/MC/ELF/cfi.s
@@ -1,6 +1,11 @@
// RUN: llvm-mc -filetype=obj -triple x86_64-pc-linux-gnu %s -o - | elf-dump --dump-section-data | FileCheck %s
-f:
+f1:
+ .cfi_startproc
+ nop
+ .cfi_endproc
+
+f2:
.cfi_startproc
nop
.cfi_endproc
@@ -11,12 +16,12 @@ f:
// CHECK-NEXT: ('sh_flags', 0x00000002)
// CHECK-NEXT: ('sh_addr', 0x00000000)
// CHECK-NEXT: ('sh_offset', 0x00000048)
-// CHECK-NEXT: ('sh_size', 0x00000030)
+// CHECK-NEXT: ('sh_size', 0x00000040)
// CHECK-NEXT: ('sh_link', 0x00000000)
// CHECK-NEXT: ('sh_info', 0x00000000)
// CHECK-NEXT: ('sh_addralign', 0x00000008)
// CHECK-NEXT: ('sh_entsize', 0x00000000)
-// CHECK-NEXT: ('_section_data', '14000000 00000000 017a5200 01781001 1b0c0708 90010000 14000000 1c000000 00000000 01000000 00000000 00000000')
+// CHECK-NEXT: ('_section_data', '14000000 00000000 017a5200 01781001 1b0c0708 90010000 10000000 1c000000 00000000 01000000 00000000 10000000 30000000 00000000 01000000 00000000')
// CHECK-NEXT: ),
// CHECK: # Section 0x00000008
@@ -24,8 +29,8 @@ f:
// CHECK-NEXT: ('sh_type', 0x00000004)
// CHECK-NEXT: ('sh_flags', 0x00000000)
// CHECK-NEXT: ('sh_addr', 0x00000000)
-// CHECK-NEXT: ('sh_offset', 0x00000158)
-// CHECK-NEXT: ('sh_size', 0x00000018)
+// CHECK-NEXT: ('sh_offset', 0x00000180)
+// CHECK-NEXT: ('sh_size', 0x00000030)
// CHECK-NEXT: ('sh_link', 0x00000006)
// CHECK-NEXT: ('sh_info', 0x00000004)
// CHECK-NEXT: ('sh_addralign', 0x00000008)
@@ -33,9 +38,15 @@ f:
// CHECK-NEXT: ('_relocations', [
// CHECK-NEXT: # Relocation 0x00000000
// CHECK-NEXT: (('r_offset', 0x00000020)
-// CHECK-NEXT: ('r_sym', 0x00000002)
+// CHECK-NEXT: ('r_sym', 0x00000003)
// CHECK-NEXT: ('r_type', 0x00000002)
// CHECK-NEXT: ('r_addend', 0x00000000)
// CHECK-NEXT: ),
+// CHECK-NEXT: # Relocation 0x00000001
+// CHECK-NEXT: (('r_offset', 0x00000034)
+// CHECK-NEXT: ('r_sym', 0x00000003)
+// CHECK-NEXT: ('r_type', 0x00000002)
+// CHECK-NEXT: ('r_addend', 0x00000001)
+// CHECK-NEXT: ),
// CHECK-NEXT: ])
// CHECK-NEXT: ),