mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-12-13 23:02:59 +00:00
4787c764f9
When build U-boot with clang with using commands: $ make HOSTCC=clang xenguest_arm64_defconfig $ make HOSTCC=clang CROSS_COMPILE=aarch64-linux-gnu- \ CC="clang -target aarch64-linux-gnueabi" -j8 The compiler reports error: /tmp/start-acdf31.s:330:1: error: symbol '_start' is already defined _start: ^ Because the symbol '_start' has been defined twice, one is defined in arch/arm/cpu/armv8/start.S, another is defined in the header boot0-linux-kernel-header.h. To fix building failure, this patch removes the symbol '_start' from boot0-linux-kernel-header.h. Signed-off-by: Leo Yan <leo.yan@linaro.org>
46 lines
1.5 KiB
C
46 lines
1.5 KiB
C
/* SPDX-License-Identifier: GPL-2.0 */
|
|
/*
|
|
* (C) Copyright 2017 NVIDIA Corporation <www.nvidia.com>
|
|
*
|
|
* Derived from Linux kernel v4.14 files:
|
|
*
|
|
* arch/arm64/include/asm/assembler.h:
|
|
* Based on arch/arm/include/asm/assembler.h, arch/arm/mm/proc-macros.S
|
|
* Copyright (C) 1996-2000 Russell King
|
|
* Copyright (C) 2012 ARM Ltd.
|
|
*
|
|
* arch/arm64/kernel/head.S:
|
|
* Based on arch/arm/kernel/head.S
|
|
* Copyright (C) 1994-2002 Russell King
|
|
* Copyright (C) 2003-2012 ARM Ltd.
|
|
* Authors: Catalin Marinas <catalin.marinas@arm.com>
|
|
* Will Deacon <will.deacon@arm.com>
|
|
*
|
|
* arch/arm64/kernel/image.h:
|
|
* Copyright (C) 2014 ARM Ltd.
|
|
*/
|
|
|
|
/*
|
|
* Emit a 64-bit absolute little endian symbol reference in a way that
|
|
* ensures that it will be resolved at build time, even when building a
|
|
* PIE binary. This requires cooperation from the linker script, which
|
|
* must emit the lo32/hi32 halves individually.
|
|
*/
|
|
.macro le64sym, sym
|
|
.long \sym\()_lo32
|
|
.long \sym\()_hi32
|
|
.endm
|
|
|
|
/*
|
|
* DO NOT MODIFY. Image header expected by Linux boot-loaders.
|
|
*/
|
|
b reset /* branch to kernel start, magic */
|
|
.long 0 /* reserved */
|
|
le64sym _kernel_offset_le /* Image load offset from start of RAM, little-endian */
|
|
le64sym _kernel_size_le /* Effective size of kernel image, little-endian */
|
|
le64sym _kernel_flags_le /* Informative flags, little-endian */
|
|
.quad 0 /* reserved */
|
|
.quad 0 /* reserved */
|
|
.quad 0 /* reserved */
|
|
.ascii "ARM\x64" /* Magic number */
|
|
.long 0 /* reserved */
|