28 lines · plain
1# REQUIRES: system-linux2 3# RUN: llvm-mc -filetype=obj -triple x86_64-unknown-linux %s -o %t.o4# RUN: ld.lld %t.o -o %t.exe -q5# RUN: llvm-bolt %t.exe -o %t.bolt.exe --funcs=nocfi_function6# RUN: llvm-readelf --section-headers %t.bolt.exe | FileCheck %s7 8## Check that llvm-bolt does not allocate unmarked space for original .eh_frame9## after .text when no update is needed to .eh_frame.10 11# CHECK: {{ .text}} PROGBITS [[#%x,ADDR:]] [[#%x,OFFSET:]] [[#%x,SIZE:]]12# CHECK-NEXT: 0000000000000000 [[#%x, OFFSET + SIZE]]13 14 .text15 .globl nocfi_function16 .type nocfi_function,@function17nocfi_function:18 ret19 .size nocfi_function, .-nocfi_function20 21 .globl _start22 .type _start,@function23_start:24 .cfi_startproc25 call nocfi_function26 .size _start, .-_start27 .cfi_endproc28