aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorVaxry <[email protected]>2023-12-26 19:35:45 +0100
committerGitHub <[email protected]>2023-12-26 19:35:45 +0100
commitd8ca95be7668375a4c576f8116bc6066281cc56f (patch)
tree3e76daf984e313a1ed45a694f052b75194133f95
parentd9651eab99dfd33441e5dc7f15680920cd4d8613 (diff)
downloadHyprland-d8ca95be7668375a4c576f8116bc6066281cc56f.tar.gz
Hyprland-d8ca95be7668375a4c576f8116bc6066281cc56f.zip
use cc instead of astrampoline-rip-improvements
Co-authored-by: Jan Beich <[email protected]>
-rw-r--r--src/plugins/HookSystem.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/HookSystem.cpp b/src/plugins/HookSystem.cpp
index 1a9009db..e09fb4f7 100644
--- a/src/plugins/HookSystem.cpp
+++ b/src/plugins/HookSystem.cpp
@@ -104,7 +104,7 @@ CFunctionHook::SAssembly CFunctionHook::fixInstructionProbeRIPCalls(const SInstr
std::ofstream ofs("/tmp/hypr/.hookcode.asm", std::ios::trunc);
ofs << assemblyBuilder;
ofs.close();
- execAndGet("as /tmp/hypr/.hookcode.asm -o /tmp/hypr/.hookbinary.o && objcopy -O binary -j .text /tmp/hypr/.hookbinary.o /tmp/hypr/.hookbinary2.o");
+ execAndGet("cc -x assembler -c /tmp/hypr/.hookcode.asm -o /tmp/hypr/.hookbinary.o && objcopy -O binary -j .text /tmp/hypr/.hookbinary.o /tmp/hypr/.hookbinary2.o");
if (!std::filesystem::exists("/tmp/hypr/.hookbinary2.o")) {
std::filesystem::remove("/tmp/hypr/.hookcode.asm");
std::filesystem::remove("/tmp/hypr/.hookbinary.asm");