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

Paschalis Mpeis via llvm-commits llvm-commits at lists.llvm.org
Fri Jul 12 01:40:26 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
----------------
paschalis-mpeis wrote:

Thanks. I applied the suggestion, however, this would break my current c test as it interferes with `-static`.
I will be converting the test to assembly with a follow-up patch.

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


More information about the llvm-commits mailing list