[llvm] [BOLT][AArch64] Provide createDummyReturnFunction (PR #96626)

Amir Ayupov via llvm-commits llvm-commits at lists.llvm.org
Thu Jul 11 09:48:23 PDT 2024


================
@@ -0,0 +1,13 @@
+// Tests that AArch64 is able to instrument static binaries in relocation mode,
+// by checking that '__bolt_fini_trampoline' is generated and contains a 'ret'
+// instruction.
+
+REQUIRES: system-linux
+
+RUN: %clang %p/../Inputs/main.c -o %t -Wl,-q -static
----------------
aaupov wrote:

```suggestion
RUN: %clang %cflags %p/../Inputs/main.c -o %t -Wl,-q -static
```

https://github.com/llvm/llvm-project/pull/96626


More information about the llvm-commits mailing list