Skip to content
This repository has been archived by the owner on Nov 6, 2022. It is now read-only.

Commit

Permalink
Merge pull request #2 from fortanix/jb/reloc-fix
Browse files Browse the repository at this point in the history
Avoid too new relocation types being emitted
  • Loading branch information
jethrogb authored Jan 21, 2019
2 parents bbe2390 + b7357de commit 4103a51
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions libunwind/src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,11 @@ if (RUST_SGX)
list(APPEND LIBUNWIND_COMPILE_FLAGS -fno-stack-protector)
list(APPEND LIBUNWIND_COMPILE_FLAGS -ffreestanding)
list(APPEND LIBUNWIND_COMPILE_FLAGS -fexceptions)
# Avoid too new relocation types being emitted, which might prevent linking
# on older platforms.
#
# See https://github.com/rust-lang/rust/issues/34978
list(APPEND LIBUNWIND_COMPILE_FLAGS -Wa,-mrelax-relocations=no)

# Sources
list(APPEND LIBUNWIND_C_SOURCES UnwindRustSgx.c)
Expand Down

0 comments on commit 4103a51

Please sign in to comment.