From mboxrd@z Thu Jan 1 00:00:00 1970 From: Lothar =?UTF-8?B?V2HDn21hbm4=?= Date: Tue, 19 Dec 2017 10:59:38 +0100 Subject: [U-Boot] [PATCH v2 3/4] arm: imx: m53evk: remove usage of mx53_dram_size In-Reply-To: <4862545d-5fe3-d32e-95cd-ef0303892b70@denx.de> References: <20171218090242.16527-1-linux-kernel-dev@beckhoff.com> <20171218090242.16527-4-linux-kernel-dev@beckhoff.com> <4862545d-5fe3-d32e-95cd-ef0303892b70@denx.de> Message-ID: <20171219105938.4538996f@karo-electronics.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="windows-1252" Content-Transfer-Encoding: quoted-printable To: u-boot@lists.denx.de Hi, On Mon, 18 Dec 2017 10:17:03 +0100 Marek Vasut wrote: > On 12/18/2017 10:02 AM, linux-kernel-dev at beckhoff.com wrote: > > From: Patrick Bruenn > >=20 > > Static variables are not available during board_init_f(). >=20 > They are, since the board runs from RAM at that point already. >=20 That's not the point. Zero-initialized variables (static or not) are located in the .bss section, which is overlayed by the .rel.dyn section. Thus writing to such a variable before relocation will trash the relocation data. Lothar Wa=C3=9Fmann