From 2e72c80323c551bfd656905589536613ee88741c Mon Sep 17 00:00:00 2001 From: Philip Wiese Date: Tue, 10 Dec 2024 17:26:07 +0100 Subject: [PATCH] Disable linker relaxation and align functions --- CMakeLists.txt | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 711c7d8..8d93320 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -57,6 +57,8 @@ target_compile_options(runtime_host target_compile_options(runtime_host PUBLIC + -falign-functions=64 + -mno-relax -march=${ISA_HOST} -mabi=${ABI} ) @@ -68,6 +70,7 @@ target_link_options(runtime_host -mabi=${ABI} -nostartfiles -ffreestanding + -mno-relax ) ################################################################################ @@ -83,6 +86,8 @@ target_compile_options(runtime_cluster_snitch target_compile_options(runtime_cluster_snitch PUBLIC + -falign-functions=64 + -mno-relax -march=${ISA_CLUSTER_SNITCH} -mabi=${ABI} ) @@ -92,6 +97,7 @@ target_link_options(runtime_cluster_snitch PUBLIC -march=${ISA_CLUSTER_SNITCH} -mabi=${ABI} + -mno-relax -nostartfiles -ffreestanding )