llvm-project/bolt/test/eh-frame-overwrite.test
Maksim Panchenko 996553228f
[BOLT] Overwrite .eh_frame and .gcc_except_table (#116755)
Under --use-old-text or --strict, we completely rewrite contents of EH
frames and exception tables sections. If new contents of either section
do not exceed the size of the original section, rewrite the section
in-place.
2024-11-19 12:59:05 -08:00

9 lines
231 B
Plaintext

# Check that llvm-bolt can overwrite .eh_frame section in-place.
REQUIRES: system-linux
RUN: %clang %cflags %p/Inputs/hello.c -o %t -Wl,-q
RUN: llvm-bolt %t -o %t.bolt --strict | FileCheck %s
CHECK: rewriting .eh_frame in-place