[lld] r337374 - [ELF] - Improve eh-frame-value-format7.s test case.
George Rimar via llvm-commits
llvm-commits at lists.llvm.org
Wed Jul 18 03:42:11 PDT 2018
Author: grimar
Date: Wed Jul 18 03:42:10 2018
New Revision: 337374
URL: http://llvm.org/viewvc/llvm-project?rev=337374&view=rev
Log:
[ELF] - Improve eh-frame-value-format7.s test case.
This adds .eh_frame_hdr content checking to test
that DW_EH_PE_udata2 address was decoded correctly.
Modified:
lld/trunk/test/ELF/eh-frame-value-format7.s
Modified: lld/trunk/test/ELF/eh-frame-value-format7.s
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/ELF/eh-frame-value-format7.s?rev=337374&r1=337373&r2=337374&view=diff
==============================================================================
--- lld/trunk/test/ELF/eh-frame-value-format7.s (original)
+++ lld/trunk/test/ELF/eh-frame-value-format7.s Wed Jul 18 03:42:10 2018
@@ -6,7 +6,28 @@
## Check we are able to handle DW_EH_PE_udata2 encoding.
+# CHECK: Section {
+# CHECK: Index:
# CHECK: Name: .eh_frame_hdr
+# CHECK-NEXT: Type: SHT_PROGBITS
+# CHECK-NEXT: Flags [
+# CHECK-NEXT: SHF_ALLOC
+# CHECK-NEXT: ]
+# CHECK-NEXT: Address: 0x2000
+# CHECK-NEXT: Offset: 0x2000
+# CHECK-NEXT: Size: 20
+# CHECK-NEXT: Link: 0
+# CHECK-NEXT: Info: 0
+# CHECK-NEXT: AddressAlignment: 4
+# CHECK-NEXT: EntrySize: 0
+# CHECK-NEXT: SectionData (
+# CHECK-NEXT: 0000: 011B033B 10000000 01000000 34F2FFFF
+# CHECK-NEXT: 0010: 24000000
+# Header (always 4 bytes): 011B033B
+# 10000000 = .eh_frame(0x2014) - .eh_frame_hdr(0x2000) - 4
+# 01000000 = 1 = the number of FDE pointers in the table.
+# 34F2FFFF = foo(0x1000) - 0x234(addend) - .eh_frame_hdr(0x2000)
+
# CHECK: Section {
# CHECK: Index:
# CHECK: Name: .eh_frame
@@ -14,8 +35,8 @@
# CHECK-NEXT: Flags [
# CHECK-NEXT: SHF_ALLOC
# CHECK-NEXT: ]
-# CHECK-NEXT: Address:
-# CHECK-NEXT: Offset:
+# CHECK-NEXT: Address: 0x2014
+# CHECK-NEXT: Offset: 0x2014
# CHECK-NEXT: Size:
# CHECK-NEXT: Link:
# CHECK-NEXT: Info:
More information about the llvm-commits
mailing list