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 CC21BC761A6 for ; Thu, 30 Mar 2023 12:38:09 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id D37DE860A2; Thu, 30 Mar 2023 14:36:51 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=tinylab.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Received: by phobos.denx.de (Postfix, from userid 109) id D082985D7C; Thu, 30 Mar 2023 06:21:05 +0200 (CEST) Received: from bg4.exmail.qq.com (bg4.exmail.qq.com [43.154.221.58]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id C973885B19 for ; Thu, 30 Mar 2023 06:21:01 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=tinylab.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=bmeng@tinylab.org X-QQ-mid: bizesmtp81t1680150045t6png9qp Received: from ubuntu.. ( [111.196.129.125]) by bizesmtp.qq.com (ESMTP) with id ; Thu, 30 Mar 2023 12:20:44 +0800 (CST) X-QQ-SSF: 01200000000000D0E000000A0000000 X-QQ-FEAT: Z2qCHCq1/907eRCEvXyBl57QrcylrC3aIO3MOHoM5xvvV4hkbQcg5gBlK9b44 oP7CFkk3dvtS1huI1DQZF1peeTtxtmqBH0FIeW3m9M/tsV2wcwS9modp+jBqfBgTiHMpqhS 5cuyGZyNdQAd5ctuiB0WTcKLhrpLkSLZUXTNLE8Ktz/LKwd0X9yWHEXg5of+L2MA+NUfuJX M+HWtSmanVgx0fdOjmgBWhDByumxEd8z0u2zbxp+SMDlXOcSfyH35C2Nom79jDuQ/Qovthh vCym1mRJ7+WEskYiVkfzdCch5GeELCILWdu5sfbVvWAt5tkDr8T1qjKYhwQsRU7Zd2CD8RI UTW9hdEvmKbAJg+VMonTu2pISZ32OHOo8fqsrkn X-QQ-GoodBg: 0 X-BIZMAIL-ID: 14746569424664129575 From: Bin Meng To: u-boot@lists.denx.de Cc: Andrew Scull , Leo , Rick Chen , Simon Glass Subject: [PATCH 7/8] riscv: spl: Remove relocation sections Date: Thu, 30 Mar 2023 12:20:23 +0800 Message-Id: <20230330042024.721710-7-bmeng@tinylab.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230330042024.721710-1-bmeng@tinylab.org> References: <20230330042024.721710-1-bmeng@tinylab.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-QQ-SENDSIZE: 520 Feedback-ID: bizesmtp:tinylab.org:qybglogicsvr:qybglogicsvr3 X-Mailman-Approved-At: Thu, 30 Mar 2023 14:36:20 +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 U-Boot SPL is not relocable. Drop these relocation sections. Signed-off-by: Bin Meng --- arch/riscv/cpu/u-boot-spl.lds | 25 ------------------------- 1 file changed, 25 deletions(-) diff --git a/arch/riscv/cpu/u-boot-spl.lds b/arch/riscv/cpu/u-boot-spl.lds index 993536302a..c3b4907905 100644 --- a/arch/riscv/cpu/u-boot-spl.lds +++ b/arch/riscv/cpu/u-boot-spl.lds @@ -32,14 +32,6 @@ SECTIONS } > .spl_mem . = ALIGN(4); - .got : { - __got_start = .; - *(.got.plt) *(.got) - __got_end = .; - } > .spl_mem - - . = ALIGN(4); - __u_boot_list : { KEEP(*(SORT(__u_boot_list*))); } > .spl_mem @@ -54,23 +46,6 @@ SECTIONS . = ALIGN(4); - /DISCARD/ : { *(.rela.plt*) } - .rela.dyn : { - __rel_dyn_start = .; - *(.rela*) - __rel_dyn_end = .; - } > .spl_mem - - . = ALIGN(4); - - .dynsym : { - __dyn_sym_start = .; - *(.dynsym) - __dyn_sym_end = .; - } > .spl_mem - - . = ALIGN(4); - _end = .; _image_binary_end = .; -- 2.34.1