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

Avoid too new relocation types being emitted #2

Merged
merged 1 commit into from
Jan 21, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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