brintos

brintos / llvm-project-archived public Read only

0
0
Text · 496 B · f549039 Raw
15 lines · plain
1# Check that llvm-bolt does not add new segments when writing code in-place.2 3REQUIRES: system-linux4 5RUN: %clang %cflags %p/Inputs/hello.c -o %t -no-pie -Wl,-q -nostartfiles \6RUN:   -nostdlib -ffreestanding7RUN: llvm-bolt %t -o %t.bolt --use-old-text --align-functions=1 \8RUN:   --no-huge-pages --align-text=1 --use-gnu-stack \9RUN:   | FileCheck %s --check-prefix=CHECK-BOLT10RUN: llvm-readelf -WS %t.bolt | FileCheck %s11 12CHECK-BOLT: not adding new segments13 14CHECK-NOT: .bolt.org.eh_frame_hdr15