1 # REQUIRES: system-linux
3 # RUN: llvm-mc -filetype=obj -triple x86_64-unknown-linux %s -o %t.o
4 # RUN: ld.lld %t.o -o %t.exe -q
5 # RUN: llvm-bolt %t.exe -o %t.bolt.exe --funcs=nocfi_function
6 # RUN: llvm-readelf --section-headers %t.bolt.exe | FileCheck %s
8 ## Check that llvm-bolt does not allocate unmarked space for original .eh_frame
9 ## after .text when no update is needed to .eh_frame.
11 # CHECK: {{ .text}} PROGBITS [[#%x,ADDR:]] [[#%x,OFFSET:]] [[#%x,SIZE:]]
12 # CHECK-NEXT: 0000000000000000 [[#%x, OFFSET + SIZE]]
16 .type nocfi_function,@function
19 .size nocfi_function, .-nocfi_function
22 .type _start,@function
26 .size _start, .-_start