Skip to content

Commit

Permalink
Add -mno-relax
Browse files Browse the repository at this point in the history
  • Loading branch information
Timmmm committed Mar 6, 2025
1 parent 43442e3 commit d971e16
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions test/first_party/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,9 @@ foreach (xlen IN ITEMS 32 64)
# Calling convention to use. Valid values are 'ilp32' or 'lp64' for 32/64-bit,
# optionally followed by 'f' or 'd' for hard-float. All combinations are valid.
-mabi=${mabi}d
# Required for compatibility with old versions of LLD. Otherwise you get an error
# "relocation R_RISCV_ALIGN requires unimplemented linker relaxation; recompile with -mno-relax"
-mno-relax
# Indicate we are building in a standalone environment. Implies -fno-builtin
# so the compiler won't assume that memcpy etc. are available.
-ffreestanding
Expand Down

0 comments on commit d971e16

Please sign in to comment.