llvm-project/bolt/test/eh-frame-hdr.test
Maksim Panchenko 08ef939637
[BOLT] Overwrite .eh_frame_hdr in-place (#116730)
If the new EH frame header can fit into the original .eh_frame_hdr
section, overwrite it in-place and pad with zeroes.
2024-11-18 20:42:38 -08:00

13 lines
354 B
Plaintext

# Check that llvm-bolt overwrites .eh_frame_hdr in-place.
REQUIRES: system-linux
RUN: %clang %cflags %p/Inputs/hello.c -o %t -Wl,-q
RUN: llvm-bolt %t -o %t.bolt --use-old-text \
RUN: | FileCheck %s --check-prefix=CHECK-BOLT
RUN: llvm-readelf -WS %t.bolt | FileCheck %s
CHECK-BOLT: rewriting .eh_frame_hdr in-place
CHECK-NOT: .bolt.org.eh_frame_hdr