summaryrefslogtreecommitdiff
path: root/cross
diff options
context:
space:
mode:
authorJan Vorlicek <janvorli@microsoft.com>2019-04-04 07:53:06 -0700
committerJan Vorlicek <janvorli@microsoft.com>2019-04-04 07:53:06 -0700
commitac49c5c42839132bfe18962f77efd52d507c71c7 (patch)
treed479691db87f31eea020917030e4ccfd087b7355 /cross
parentf61314dab43e29eaa5c4323a890bc408be014f83 (diff)
downloadcoreclr-ac49c5c42839132bfe18962f77efd52d507c71c7.tar.gz
coreclr-ac49c5c42839132bfe18962f77efd52d507c71c7.tar.bz2
coreclr-ac49c5c42839132bfe18962f77efd52d507c71c7.zip
Fix MUSL ARM64 cross build
There were two issues: * the cross/toolchain.cmake was unconditionally setting the linker to ld.gold. This is not wanted in general and the ld.gold cannot link arm64 MUSL stuff correctly (it leaves a couple of TLS symbols as undefined) * the src/vm/arm64/asmhelpers.S was referencing a global variable using absolute relocation, which is not allowed in shared libraries on MUSL based Linux distros.
Diffstat (limited to 'cross')
-rw-r--r--cross/toolchain.cmake2
1 files changed, 0 insertions, 2 deletions
diff --git a/cross/toolchain.cmake b/cross/toolchain.cmake
index 07d3a41160..75c2e27cdc 100644
--- a/cross/toolchain.cmake
+++ b/cross/toolchain.cmake
@@ -76,8 +76,6 @@ if (CLR_CMAKE_COMPILER STREQUAL "Clang")
add_compile_param(CROSS_LINK_FLAGS "--target=${TOOLCHAIN}")
endif()
-add_compile_param(CROSS_LINK_FLAGS "-fuse-ld=gold")
-
if(TARGET_ARCH_NAME STREQUAL "armel")
if(DEFINED TIZEN_TOOLCHAIN) # For Tizen only
add_compile_param(CROSS_LINK_FLAGS "-B${CROSS_ROOTFS}/usr/lib/gcc/${TIZEN_TOOLCHAIN}")