Skip to content

Commit

Permalink
Disable linker relaxation and align functions
Browse files Browse the repository at this point in the history
  • Loading branch information
Xeratec committed Dec 10, 2024
1 parent cbd1ec8 commit 2e72c80
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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}
)
Expand All @@ -68,6 +70,7 @@ target_link_options(runtime_host
-mabi=${ABI}
-nostartfiles
-ffreestanding
-mno-relax
)

################################################################################
Expand All @@ -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}
)
Expand All @@ -92,6 +97,7 @@ target_link_options(runtime_cluster_snitch
PUBLIC
-march=${ISA_CLUSTER_SNITCH}
-mabi=${ABI}
-mno-relax
-nostartfiles
-ffreestanding
)
Expand Down

0 comments on commit 2e72c80

Please sign in to comment.