From patchwork Thu May 4 07:54:58 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Leo Yan X-Patchwork-Id: 679082 Delivered-To: patch@linaro.org Received: by 2002:a5d:4a41:0:0:0:0:0 with SMTP id v1csp290324wrs; Thu, 4 May 2023 04:46:26 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4iY6JIjX97WDSy3YdIrW3uq6CtVXnMi7TLqZc43X5Rj3wdPlBpskAASM+DLvO7GesAlofY X-Received: by 2002:a05:6a00:8d2:b0:63b:8b47:453c with SMTP id s18-20020a056a0008d200b0063b8b47453cmr2459442pfu.1.1683200786495; Thu, 04 May 2023 04:46:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1683200786; cv=none; d=google.com; s=arc-20160816; b=rYYz0YNzu/d3I226J0cOrP123AeNlBxmk2y+EqnSc1Lw05iwgOWfeVK6K/tUzzpVn9 QZI6LsJMt5o2Tn1pDiDV2mqfnc1UbxjVpDyq+fb8gDBiXiFQCWDvVu6E/uaZCGZhXQrj U+ZtXWQ6beTpeohSKSanESlk7JvvEKjJy2XHD33qHNM/0wMxWDuxv6bSUgvYI1JD3kNu y8Ru/slBtaLgaN7JuLFkCVSy8a9VGmEVfA/5OijbODVzAXh0xNtkL21kkyCYXuyJ/zGf +t6KRG5ynwx5VZbxlZ99rt2gSyMO/UqEguQUQQlm9KegoB1J+1C98temtQEWqcePCfre BaCg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=MNPIPnPj5M4gwrSfhAr2KkQalf+nSJUDe+s6pb+iyLs=; b=jrR2vQmpGIwcP11Rj8O3/tdh4RUszitHeHIKAzXVuRYIP5p8an1sxfceXMQsVfjCB6 1vH0iKuij4y5bka/YAvTtbyT+UvmIVRzOKyBY+3NPP8/D7mUuHYsg4Tdvgh30upszYcK 7y1SNnAXnxzETNmAZ8T1IsqKcGOpmbFvVBo2q9QNxH3qk3+MldCXYrtDhpXWpaSw3Dlh n9gXFFXT4/hVxWP2MW4endqzSnPqDeU/yPEzvGX/6sd/ZnQ+zA+zILZ97U8izLFwphho Pnt+v+aLJgd7+lchoC3AfpVwASIISa3OQky11Pe9OLu0p6u09/bImR1/udVqDaYHNcHu klpQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=PTbzXySL; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 85.214.62.61 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from phobos.denx.de (phobos.denx.de. [85.214.62.61]) by mx.google.com with ESMTPS id c132-20020a624e8a000000b006436618b22bsi2303054pfb.155.2023.05.04.04.46.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 04 May 2023 04:46:26 -0700 (PDT) Received-SPF: pass (google.com: domain of u-boot-bounces@lists.denx.de designates 85.214.62.61 as permitted sender) client-ip=85.214.62.61; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=PTbzXySL; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 85.214.62.61 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org 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) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.2 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-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 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. */