
If the new EH frame header can fit into the original .eh_frame_hdr section, overwrite it in-place and pad with zeroes.
13 lines
354 B
Plaintext
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
|