From mboxrd@z Thu Jan 1 00:00:00 1970 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 1EB19C00140 for ; Fri, 5 Aug 2022 20:10:33 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id F3483848B4; Fri, 5 Aug 2022 22:10:30 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=kernel.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=kernel.org header.i=@kernel.org header.b="JE3cmxub"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 67CAB848CA; Fri, 5 Aug 2022 22:10:29 +0200 (CEST) Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) (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 25300848B4 for ; Fri, 5 Aug 2022 22:10:27 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=kernel.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=pali@kernel.org Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id CBB6461A14; Fri, 5 Aug 2022 20:10:25 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 18796C433D7; Fri, 5 Aug 2022 20:10:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1659730225; bh=WfTl+U7Etfd8IxBss6LYYdP62b8qU1cbFBMehKCyABY=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=JE3cmxubb8fzsiuF0g2Ji53KNFLnqy15GYklFJAt9H/ls/v4FD3RrblngCk0+VDN/ Z+HWqbC/+34JoA2Ik0cBjS9i1m5bWDrMchR5UH46lIB56kAAtZWdhyLPPtFtp4YaSd 84hIPn9wukCsxEas8+2yW5Stdo6EZPJK8e0SG8RrzuBTQS3idVOujao5J0668AmTQv 8NGiXtxqeS4R87CyZ5xIRtdFlcnhYdpzmwMqAuZcVPQ9sKcNAMytIXf6dj5/JffR7K Vm7kT/fIc+t1k0gYVhEIBKJKqq/xmx//UWtr4megPfTHiGCczCu8+sgkTMfHewr+4A zu/G5pHEI5vtw== Received: by pali.im (Postfix) id 59F6C941; Fri, 5 Aug 2022 22:10:22 +0200 (CEST) From: =?UTF-8?q?Pali=20Roh=C3=A1r?= To: Jaehoon Chung , Peng Fan , =?UTF-8?q?Marek=20Beh=C3=BAn?= Cc: Sinan Akman , u-boot@lists.denx.de Subject: [PATCH v3 2/3] powerpc: mpc85xx: Fix loading U-Boot proper from SD card in SPL Date: Fri, 5 Aug 2022 22:09:40 +0200 Message-Id: <20220805200941.22101-2-pali@kernel.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20220805200941.22101-1-pali@kernel.org> References: <20220511183332.1362-1-pali@kernel.org> <20220805200941.22101-1-pali@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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.6 at phobos.denx.de X-Virus-Status: Clean Change 8-byte alignment of SPL binary to just 4-byte alignment as objcopy trims trailing zero bytes when converting ELF file to RAW binary. This is same fix for SPL linker script as was done fix for U-Boot linker script in commit e8c0e0064c8a ("powerpc: mpc85xx: Fix CONFIG_OF_SEPARATE support"). It is required for the patch "mmc: fsl_esdhc_spl: Add support for builds without CONFIG_SYS_MMC_U_BOOT_OFFS" which triggered this issue in SPL. Signed-off-by: Pali Rohár --- arch/powerpc/cpu/mpc85xx/u-boot-spl.lds | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/powerpc/cpu/mpc85xx/u-boot-spl.lds b/arch/powerpc/cpu/mpc85xx/u-boot-spl.lds index e88153745238..89df4b5f6f07 100644 --- a/arch/powerpc/cpu/mpc85xx/u-boot-spl.lds +++ b/arch/powerpc/cpu/mpc85xx/u-boot-spl.lds @@ -58,7 +58,7 @@ SECTIONS __ex_table : { *(__ex_table) } __stop___ex_table = .; - . = ALIGN(8); + . = ALIGN(4); __init_begin = .; __init_end = .; _end = .; -- 2.20.1