1 | // RUN: %clang %cflags -O2 -fPIE -Wl,-q -pie %s -o %t.exe |
---|---|
2 | // RUN: llvm-bolt %t.exe -o %t.bolt 2>&1 | FileCheck %s |
3 | // CHECK-NOT: BOLT-WARNING: unable to disassemble instruction at offset |
4 | |
5 | void extra_space() { |
6 | asm volatile(".rept 256\n" |
7 | " .byte 0xff\n" |
8 | ".endr\n"); |
9 | return; |
10 | } |
11 | |
12 | int main(int argc, char **argv) { |
13 | void (*fn)(void); |
14 | fn = extra_space + 256; |
15 | fn(); |
16 | return 0; |
17 | } |
18 |