aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRafael Espindola <rafael.espindola@gmail.com>2016-04-06 19:38:26 +0000
committerRafael Espindola <rafael.espindola@gmail.com>2016-04-06 19:38:26 +0000
commit1b6188d2f865366ef94d65b65596f47c9196c20c (patch)
treee3870b00aed011f2c5068cb1d669f835698707a2
parentfb000583aa5a0693fb7c706f8a1d8a901a9f15e4 (diff)
downloadllvm-1b6188d2f865366ef94d65b65596f47c9196c20c.zip
llvm-1b6188d2f865366ef94d65b65596f47c9196c20c.tar.gz
llvm-1b6188d2f865366ef94d65b65596f47c9196c20c.tar.bz2
Make this test a bit stronger.
Show that in addition to handling empty .eh_frame, it is merged with any regular .eh_frame. llvm-svn: 265588
-rw-r--r--lld/test/ELF/Inputs/ehframe-relocation.s2
-rw-r--r--lld/test/ELF/ehframe-relocation.s6
2 files changed, 6 insertions, 2 deletions
diff --git a/lld/test/ELF/Inputs/ehframe-relocation.s b/lld/test/ELF/Inputs/ehframe-relocation.s
new file mode 100644
index 0000000..7ba6c05
--- /dev/null
+++ b/lld/test/ELF/Inputs/ehframe-relocation.s
@@ -0,0 +1,2 @@
+ .cfi_startproc
+ .cfi_endproc
diff --git a/lld/test/ELF/ehframe-relocation.s b/lld/test/ELF/ehframe-relocation.s
index f952ebc..38ac33f 100644
--- a/lld/test/ELF/ehframe-relocation.s
+++ b/lld/test/ELF/ehframe-relocation.s
@@ -1,6 +1,7 @@
// REQUIRES: x86
// RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %s -o %t.o
-// RUN: ld.lld %t.o -o %t
+// RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %p/Inputs/ehframe-relocation.s -o %t2.o
+// RUN: ld.lld %t.o %t2.o -o %t
// RUN: llvm-readobj -s %t | FileCheck %s
// RUN: llvm-objdump -d %t | FileCheck --check-prefix=DISASM %s
@@ -11,7 +12,8 @@
// CHECK-NEXT: ]
// CHECK-NEXT: Address: 0x10120
// CHECK-NEXT: Offset:
-// CHECK-NEXT: Size: 0
+// CHECK-NEXT: Size: 48
+// CHECK-NOT: .eh_frame
// 0x10120 = 65824
// 0x10120 + 5 = 65829