Skip to content

Commit 04a6dc2

Browse files
authored
[BOLT][test] Fix patch-entries for aarch64 buildbot (#65690)
1 parent 4bbc903 commit 04a6dc2

File tree

3 files changed

+18
-19
lines changed

3 files changed

+18
-19
lines changed

bolt/test/X86/Inputs/patch-entries.c

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
#include "stub.h"
2+
3+
static void foo() { printf("foo\n"); }
4+
5+
int main() {
6+
foo();
7+
return 0;
8+
}

bolt/test/X86/patch-entries.c

Lines changed: 0 additions & 19 deletions
This file was deleted.

bolt/test/X86/patch-entries.test

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
# Checking crashes against injected binary functions created by patch
2+
# entries pass and debug info turned on. In these cases, we were
3+
# trying to fetch input to output maps on injected functions and
4+
# crashing.
5+
6+
REQUIRES: system-linux
7+
8+
RUN: %clang %cflags -no-pie -g %p/Inputs/patch-entries.c -fuse-ld=lld -o %t.exe \
9+
RUN: -Wl,-q -I%p/../Inputs
10+
RUN: llvm-bolt -relocs %t.exe -o %t.out --update-debug-sections --force-patch

0 commit comments

Comments
 (0)