blob: f5490394eb6d95861ac5366ed79ce29b88ad97cc (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
# 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
|