3 # RUN: llvm-mc -filetype=obj -triple=x86_64 %s -o %t
4 # RUN: ld.lld %t %t -o %t2 --eh-frame-hdr
5 # RUN: llvm-readelf -u --symbols %t2 | FileCheck %s
7 # CHECK: EHFrameHeader {
10 # CHECK-NEXT: Size: 0x14
11 # CHECK-NEXT: Corresponding Section: .eh_frame_hdr
12 # CHECK-NEXT: Header {
13 # CHECK-NEXT: version: 1
14 # CHECK-NEXT: eh_frame_ptr_enc:
15 # CHECK-NEXT: fde_count_enc:
16 # CHECK-NEXT: table_enc:
17 # CHECK-NEXT: eh_frame_ptr:
18 # CHECK-NEXT: fde_count: 1
19 # CHECK-NEXT: entry 0 {
20 # CHECK-NEXT: initial_location: 0x[[# %x, SYM:]]
21 # CHECK-NEXT: address: 0x[[# %x, FDE:]]
26 # CHECK: [0x[[# FDE]]] FDE
29 # CHECK-NEXT: Num: Value {{.*}} Name
30 # CHECK: {{0+}}[[# SYM]] {{.*}} bar
32 .section .text.bar,"axG",@progbits,bar,comdat