]> git.sur5r.net Git - u-boot/commit
nios2: use gc sections to reduce image size
authorThomas Chou <thomas@wytron.com.tw>
Fri, 28 May 2010 04:08:10 +0000 (12:08 +0800)
committerScott McNutt <smcnutt@psyent.com>
Mon, 12 Jul 2010 15:30:51 +0000 (11:30 -0400)
commitcb2da50f0f7b62f2ef806bdc61ec34d103542fbb
tree0bf401bd30feb85d871398395ed1e00a6e8b9745
parent54841ab50c20d6fa6c9cc3eb826989da3a22d934
nios2: use gc sections to reduce image size

Follow the discussion of Charles Manning and Mike Frysinger.
Using gc_sections helps reduce image size.

Configuring for nios2-generic board...
Before,
   text    data     bss     dec     hex filename
 123979    3724   22892  150595   24c43 /tmp/u-boot/u-boot
After,
   text    data     bss     dec     hex filename
 115983    3800   22732  142515   22cb3 /tmp/u-boot/u-boot

Signed-off-by: Thomas Chou <thomas@wytron.com.tw>
Signed-off-by: Scott McNutt <smcnutt@psyent.com>
arch/nios2/config.mk