
On Mar 14, 2011, at 1:27 AM, Wolfgang Denk wrote:
Dear Kumar Gala,
In message BCF2A946-E0CC-43F6-A875-A0E5A0DE7A6D@kernel.crashing.org 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 iwamatsu@nigauri.org 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