From mboxrd@z Thu Jan 1 00:00:00 1970 From: Tom Rini Date: Mon, 27 May 2019 12:48:11 -0400 Subject: [U-Boot] [PATCH v3] spl: add overall SPL size check In-Reply-To: References: <20190524200704.29373-1-simon.k.r.goldschmidt@gmail.com> Message-ID: <20190527164811.GC20781@bill-the-cat> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Tue, May 28, 2019 at 01:35:52AM +0900, Masahiro Yamada wrote: > On Sat, May 25, 2019 at 5:07 AM Simon Goldschmidt > wrote: > > > > This adds a size check for SPL that can dynamically check generated > > SPL binaries (including devicetree) for a size limit that ensures > > this image plus global data, heap and stack fit in initial SRAM. > > > > Since some of these sizes are not available to make, a new host tool > > 'spl_size_limit' is added that dumps the resulting maximum size for > > an SPL binary to stdout. This tool is used in toplevel Makefile to > > implement the size check on SPL binaries. > > > > Signed-off-by: Simon Goldschmidt > > --- > > Some architectures have SPL size checks. > CONFIG_SPL_MAX_FOOTPRINT > CONFIG_SPL_MAX_SIZE > CONFIG_SPL_BSS_MAX_SIZE > > Will they be replaced by this new mechanism? Yes, as the existing checks are only sufficient for final link time overflows and not final image overflows. -- Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 819 bytes Desc: not available URL: