From: Stefan Roese Date: Mon, 8 Aug 2016 16:18:23 +0200 Subject: [U-Boot] [PATCH] tiny-printf: Adjust to avoid using data section In-Reply-To: <20160806165918.GC9942@bill-the-cat> References: <1470369494-6480-1-git-send-email-sjg@chromium.org> <20160806165918.GC9942@bill-the-cat> Message-ID: <79edcb86-ec56-e31c-777d-ddaaa7b5f284@denx.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On 06.08.2016 18:59, Tom Rini wrote: > 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 Thanks, Stefan