arc-2016.09 is the most recent toolchain for ARC cores and it is based on top of upstream Binutils 2.27 and GCC 6.2.1. With updated major version of GCC we copied all GCC 6.x patches for ARC as well as Bintils 2.27 patches. Note that toochain sports ARCv4 ABI and so must be used with 4.8+ Linux kernels. Even though it will build v4.4 kernel perfectly fine on attempt to run user-space apps they won't work with older kernel. That said previuosly sent RFC patches with Linux kernel update are required: [1] https://patchwork.ozlabs.org/patch/726686/ [2] https://patchwork.ozlabs.org/patch/726687/ Signed-off-by: Alexey Brodkin <Alexey.Brodkin@synopsys.com>
		
			
				
	
	
		
			14 lines
		
	
	
		
			411 B
		
	
	
	
		
			Diff
		
	
	
	
	
	
			
		
		
	
	
			14 lines
		
	
	
		
			411 B
		
	
	
	
		
			Diff
		
	
	
	
	
	
--- a/gcc/gcc.c
 | 
						|
+++ b/gcc/gcc.c
 | 
						|
@@ -858,7 +858,9 @@ proper position among the other output f
 | 
						|
 #endif
 | 
						|
 
 | 
						|
 #ifndef LINK_SSP_SPEC
 | 
						|
-#ifdef TARGET_LIBC_PROVIDES_SSP
 | 
						|
+#if DEFAULT_LIBC == LIBC_MUSL
 | 
						|
+#define LINK_SSP_SPEC "-lssp_nonshared"
 | 
						|
+#elif defined(TARGET_LIBC_PROVIDES_SSP)
 | 
						|
 #define LINK_SSP_SPEC "%{fstack-protector|fstack-protector-all" \
 | 
						|
 		       "|fstack-protector-strong|fstack-protector-explicit:}"
 | 
						|
 #else
 |