From: Kumar Gala Date: Mon, 14 Mar 2011 06:45:17 -0500 Subject: [U-Boot] [PATCH] powerpc/8xxx: Reduce NAND-SPL build size In-Reply-To: <20110314062753.E35531518DB6@gemini.denx.de> References: <1299471395-26596-1-git-send-email-galak@kernel.crashing.org> <20110313214015.EC6651518DB5@gemini.denx.de> <20110314062753.E35531518DB6@gemini.denx.de> Message-ID: List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Mar 14, 2011, at 1:27 AM, Wolfgang Denk wrote: > Dear Kumar Gala, > > In message you wrote: >> >>>> We don't use disable_law in the SPL code so only build it if >>>> !CONFIG_NAND_SPL. >>> >>> Does -ffunction-sections / --gc-sections not catch this automatically? >> >> Doesn't appear to, but not sure if the NAND makefiles are utilizing those options. > > Can you please verify this first? > > At first glace it looks as if the compilation was done with > -ffunction-sections and -fdata-sections, but I don't see --gc-sections > on the linker command line commit 8aba9dceebb14144e07d19593111ee3a999c37fc Author: Nobuhiro Iwamatsu Date: Thu Jan 6 10:23:54 2011 +0900 Divides variable of linker flags to LDFLAGS-u-boot and LDFLAGS However, I think this is fixed via: http://patchwork.ozlabs.org/patch/84010/ Which we need anyways, because Haiying's patch fixes nand boot in general. - k