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

Commit 4103a51

Browse files
authored
Merge pull request #2 from fortanix/jb/reloc-fix
Avoid too new relocation types being emitted
2 parents bbe2390 + b7357de commit 4103a51

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

libunwind/src/CMakeLists.txt

+5
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,11 @@ if (RUST_SGX)
5050
list(APPEND LIBUNWIND_COMPILE_FLAGS -fno-stack-protector)
5151
list(APPEND LIBUNWIND_COMPILE_FLAGS -ffreestanding)
5252
list(APPEND LIBUNWIND_COMPILE_FLAGS -fexceptions)
53+
# Avoid too new relocation types being emitted, which might prevent linking
54+
# on older platforms.
55+
#
56+
# See https://github.com/rust-lang/rust/issues/34978
57+
list(APPEND LIBUNWIND_COMPILE_FLAGS -Wa,-mrelax-relocations=no)
5358

5459
# Sources
5560
list(APPEND LIBUNWIND_C_SOURCES UnwindRustSgx.c)

0 commit comments

Comments
 (0)