VisionFive2 Linux kernel

StarFive Tech Linux Kernel for VisionFive (JH7110) boards (mirror)

More than 9999 Commits   33 Branches   57 Tags
author: Joel Stanley <joel@jms.id.au> 2018-09-14 13:36:47 +0930 committer: Michael Ellerman <mpe@ellerman.id.au> 2018-09-19 22:08:12 +1000 commit: ee9d21b3b3583712029a0db65a4b7c081d08d3b3 parent: cbc39809a398b1a30c2bdb0f3123eef18c28a729
Commit Summary:
powerpc/boot: Ensure _zimage_start is a weak symbol
Diffstat:
1 file changed, 3 insertions, 1 deletion
diff --git a/arch/powerpc/boot/crt0.S b/arch/powerpc/boot/crt0.S
index dcf2f15e6797..32dfe6d083f3 100644
--- a/arch/powerpc/boot/crt0.S
+++ b/arch/powerpc/boot/crt0.S
@@ -47,8 +47,10 @@ p_end:		.long	_end
 p_pstack:	.long	_platform_stack_top
 #endif
 
-	.weak	_zimage_start
 	.globl	_zimage_start
+	/* Clang appears to require the .weak directive to be after the symbol
+	 * is defined. See https://bugs.llvm.org/show_bug.cgi?id=38921  */
+	.weak	_zimage_start
 _zimage_start:
 	.globl	_zimage_start_lib
 _zimage_start_lib: