[all-commits] [llvm/llvm-project] 5cb9b9: [BOLT][AArch64] Instrumentation for static binarie...
Paschalis Mpeis via All-commits
all-commits at lists.llvm.org
Mon Jul 8 06:41:44 PDT 2024
Branch: refs/heads/users/paschalis-mpeis/bolt-create-dummy-return
Home: https://github.com/llvm/llvm-project
Commit: 5cb9b928724a9e3a92fc629a8d95e96fec21cb1c
https://github.com/llvm/llvm-project/commit/5cb9b928724a9e3a92fc629a8d95e96fec21cb1c
Author: Paschalis Mpeis <Paschalis.Mpeis at arm.com>
Date: 2024-07-05 (Fri, 05 Jul 2024)
Changed paths:
A bolt/test/AArch64/dummy-return.test
A bolt/test/Inputs/main.c
Log Message:
-----------
[BOLT][AArch64] Instrumentation for static binaries doesn't work in reloc mode.
On AArch64, when trying to instrument a static binary that has relocation
data BOLT would crash as it misses `createDummyReturnFunction` function.
Commit: 1a1808d28347f6eecf5fb2ceb9d73ac860fe3d56
https://github.com/llvm/llvm-project/commit/1a1808d28347f6eecf5fb2ceb9d73ac860fe3d56
Author: Paschalis Mpeis <Paschalis.Mpeis at arm.com>
Date: 2024-07-05 (Fri, 05 Jul 2024)
Changed paths:
M bolt/lib/Target/AArch64/AArch64MCPlusBuilder.cpp
M bolt/test/AArch64/dummy-return.test
Log Message:
-----------
[BOLT][AArch64] Implemented createDummyReturnFunction.
On AArch64, this method is needed when trying to instrument a static
binary.
Sample commands:
```bash
clang -Wl,-q test.c -static -o out
llvm-bolt -instrument -instrumentation-sleep-time=5 out -o out.instr
```
Commit: 77d7f795c3d1d681393bb2704611e1233e121393
https://github.com/llvm/llvm-project/commit/77d7f795c3d1d681393bb2704611e1233e121393
Author: Paschalis Mpeis <Paschalis.Mpeis at arm.com>
Date: 2024-07-05 (Fri, 05 Jul 2024)
Changed paths:
M bolt/include/bolt/Core/MCPlusBuilder.h
M bolt/lib/Passes/Instrumentation.cpp
M bolt/lib/Target/AArch64/AArch64MCPlusBuilder.cpp
M bolt/lib/Target/X86/X86MCPlusBuilder.cpp
M bolt/test/AArch64/dummy-return.test
M bolt/test/Inputs/main.c
Log Message:
-----------
Refactored, improved test, and addressed reviewers.
Compare: https://github.com/llvm/llvm-project/compare/2faf8efd49ee...77d7f795c3d1
To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications
More information about the All-commits
mailing list