Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 96E94C7EE21 for ; Thu, 4 May 2023 11:46:23 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 1FC2F85746; Thu, 4 May 2023 13:45:58 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (2048-bit key; unprotected) header.d=linaro.org header.i=@linaro.org header.b="PTbzXySL"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 6DCCD854DA; Thu, 4 May 2023 09:55:22 +0200 (CEST) Received: from mail-pl1-x62d.google.com (mail-pl1-x62d.google.com [IPv6:2607:f8b0:4864:20::62d]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id BC39C827A6 for ; Thu, 4 May 2023 09:55:19 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=leo.yan@linaro.org Received: by mail-pl1-x62d.google.com with SMTP id d9443c01a7336-1ab01bf474aso824675ad.1 for ; Thu, 04 May 2023 00:55:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1683186918; x=1685778918; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=MNPIPnPj5M4gwrSfhAr2KkQalf+nSJUDe+s6pb+iyLs=; b=PTbzXySL+B6R9CqtZ5/4TIOZxov0W5TRN70XlYWNWdw9jjdPuDEUYlXTYwfLtf8oBi Lj2m09SBxPx3mD2arNTbSj0A+rsUJUnqy7Kn3ESHAbS7kKH1rfgoCPZjUS60bIY3EBkC WGwwqiPWKJgZ2YoKVUh0S7OQijjZLQThOMjDVBJrSWSahBEVddI5vQ8js35DAGSe9cWK lWfNPmKUblyrFj05mWgxO5AIziaHNDl/6ClQH9k1l/xzwQ+sS+H1+pojicHMuA6hkw8n U0HyXQA0DCQb31pSmvUAA0m9Fk2WVdv30f1f/bNKOpQzita8BbwCBlsPWq0PBbTm520N DTFA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1683186918; x=1685778918; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=MNPIPnPj5M4gwrSfhAr2KkQalf+nSJUDe+s6pb+iyLs=; b=MZFcuSAFWB3HAqSs7RCUOVCZnZeATRsJ5OSWGyser1WqHQEZXmcLnJIdi/fO+Q91Wz TiuGf4fsKZcl2SZVgqPG4z7WixKcUz1H5YyU610GsFUo7ZVYZTz1fvkpU9Nbz4okcKUz c8/XGGru1NBpwfv7EE31uITv09zvQGj6L4IoI4IpZU1iYZRTWsGs6Tmrn07XCy6Oh9K/ 7ptKcVi916ic+oSSKlrQxsXnpqpuaEud7MYr5DOMH7Q8BxKvhLyX9rP6+a7h802mSzfd UdhjSfp3Umg3QtSsFwkImwOanyHo+LHJk3mSgJ2R54yVFzo8d2bX7cGuqF3OckLTuItV Sdkw== X-Gm-Message-State: AC+VfDyuLJf7J1RWCcrs7azJLbxbVTMXSVtcxoelOFuB5IWmVgZ0YAdh JHnMPpCF70i408ZfsSrJZA8+Pnspm/iSXu4akjOZZQ== X-Google-Smtp-Source: ACHHUZ5Yy0umaVnWuwq51hYu8zQOhpvMGqAMp5gRxG1/85phfauUv04eIfkXqIweAJbDmmFm/W6lAQ== X-Received: by 2002:a17:902:7403:b0:1a6:3ffb:8997 with SMTP id g3-20020a170902740300b001a63ffb8997mr3095527pll.42.1683186918069; Thu, 04 May 2023 00:55:18 -0700 (PDT) Received: from leoy-yangtze.lan ([107.151.177.135]) by smtp.gmail.com with ESMTPSA id s18-20020a170902ea1200b001a4edbabad3sm7939104plg.230.2023.05.04.00.55.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 04 May 2023 00:55:17 -0700 (PDT) From: Leo Yan To: u-boot@lists.denx.de, Andrii Anisov , Oleksandr Andrushchenko , Anastasiia Lukianenko Cc: Leo Yan Subject: [PATCH v1 1/2] arm64: Remove duplicated symbols Date: Thu, 4 May 2023 15:54:58 +0800 Message-Id: <20230504075459.59855-2-leo.yan@linaro.org> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230504075459.59855-1-leo.yan@linaro.org> References: <20230504075459.59855-1-leo.yan@linaro.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Mailman-Approved-At: Thu, 04 May 2023 13:45:54 +0200 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.8 at phobos.denx.de X-Virus-Status: Clean 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 --- arch/arm/include/asm/boot0-linux-kernel-header.h | 2 -- 1 file changed, 2 deletions(-) diff --git a/arch/arm/include/asm/boot0-linux-kernel-header.h b/arch/arm/include/asm/boot0-linux-kernel-header.h index c6cd76f32a..c930fea5fd 100644 --- a/arch/arm/include/asm/boot0-linux-kernel-header.h +++ b/arch/arm/include/asm/boot0-linux-kernel-header.h @@ -31,8 +31,6 @@ .long \sym\()_hi32 .endm -.globl _start -_start: /* * DO NOT MODIFY. Image header expected by Linux boot-loaders. */ -- 2.39.2