# Check that llvm-bolt does not add new segments when writing code in-place. REQUIRES: system-linux RUN: %clang %cflags %p/Inputs/hello.c -o %t -no-pie -Wl,-q -nostartfiles \ RUN: -nostdlib -ffreestanding RUN: llvm-bolt %t -o %t.bolt --use-old-text --align-functions=1 \ RUN: --no-huge-pages --align-text=1 --use-gnu-stack \ RUN: | FileCheck %s --check-prefix=CHECK-BOLT RUN: llvm-readelf -WS %t.bolt | FileCheck %s CHECK-BOLT: not adding new segments CHECK-NOT: .bolt.org.eh_frame_hdr