From: Tom Rini Date: Tue, 9 Aug 2016 20:46:39 -0400 Subject: [U-Boot] tiny-printf: Adjust to avoid using data section In-Reply-To: <1470369494-6480-1-git-send-email-sjg@chromium.org> References: <1470369494-6480-1-git-send-email-sjg@chromium.org> Message-ID: <20160810004639.GT4188@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 Thu, Aug 04, 2016 at 09:58:14PM -0600, Simon Glass wrote: > We can pass all the variables down to the functions that need them, and > then everything is on the stack. This is safer than using the data section. > > At least on firefly-rk3288, the code size is the same and the data size is > 12 bytes smaller: > > before: > 18865 2636 40 21541 5425 b/firefly-rk3288/spl/u-boot-spl > after: > 18865 2624 40 21529 5419 b/firefly-rk3288/spl/u-boot-spl > > Signed-off-by: Simon Glass > Reviewed-by: Tom Rini > Reviewed-by: Stefan Roese Applied to u-boot/master, thanks! -- Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 819 bytes Desc: Digital signature URL: