Skip to content

Commit 7ef0334

Browse files
committed
Force PIE explicitly in the test
1 parent 277cc4a commit 7ef0334

File tree

2 files changed

+7
-6
lines changed

2 files changed

+7
-6
lines changed
Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,13 @@
11
SECTIONS {
2-
. = 0x400000 + SIZEOF_HEADERS;
2+
. = SIZEOF_HEADERS;
33
.interp : { *(.interp) }
44
.note.gnu.build-id : { *(.note.gnu.build-id) }
5+
. = 0x212e8;
56
.dynsym : { *(.dynsym) }
6-
. = 0x801000;
7+
. = 0x31860;
78
.text : { *(.text*) }
8-
. = 0x803000;
9+
. = 0x41c20;
910
.fini_array : { *(.fini_array) }
10-
. = 0x805000;
11+
. = 0x54e18;
1112
.data : { *(.data) }
12-
}
13+
}

bolt/test/perf2bolt/perf_test.test

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
REQUIRES: system-linux, perf
44

5-
RUN: %clang %S/Inputs/perf_test.c -fuse-ld=lld -Wl,--script=%S/Inputs/perf_test.lds -o %t
5+
RUN: %clang %S/Inputs/perf_test.c -fuse-ld=lld -pie -Wl,--script=%S/Inputs/perf_test.lds -o %t
66
RUN: perf record -Fmax -e cycles:u -o %t2 -- %t
77
RUN: perf2bolt %t -p=%t2 -o %t3 -nl -ignore-build-id --show-density \
88
RUN: --heatmap %t.hm 2>&1 | FileCheck %s

0 commit comments

Comments
 (0)