summaryrefslogtreecommitdiff
path: root/board
diff options
context:
space:
mode:
authorGraeme Russ <graeme.russ@gmail.com>2010-10-07 20:03:20 +1100
committerGraeme Russ <graeme.russ@gmail.com>2010-10-07 20:03:20 +1100
commitd664adb6bb7243fc9be1cb242a18a76901bc5c3a (patch)
treeb29c069950bd4c4af917015c29ba3ae824a4818e /board
parentabe98f49e191ce0183132bed548643db7e2b80c5 (diff)
downloadu-boot-imx-d664adb6bb7243fc9be1cb242a18a76901bc5c3a.zip
u-boot-imx-d664adb6bb7243fc9be1cb242a18a76901bc5c3a.tar.gz
u-boot-imx-d664adb6bb7243fc9be1cb242a18a76901bc5c3a.tar.bz2
x86: use gc sections to reduce image size
Follow the discussion of Charles Manning and Mike Frysinger. Using gc_sections helps reduce image size.
Diffstat (limited to 'board')
-rw-r--r--board/eNET/u-boot.lds10
1 files changed, 5 insertions, 5 deletions
diff --git a/board/eNET/u-boot.lds b/board/eNET/u-boot.lds
index d78d75f..7b211a8 100644
--- a/board/eNET/u-boot.lds
+++ b/board/eNET/u-boot.lds
@@ -77,13 +77,13 @@ SECTIONS
_i386boot_bss_size = SIZEOF(.bss);
/* 16bit realmode trampoline code */
- .realmode 0x7c0 : AT ( LOADADDR(.rel.dyn) + SIZEOF(.rel.dyn) ) { *(.realmode) }
+ .realmode 0x7c0 : AT ( LOADADDR(.rel.dyn) + SIZEOF(.rel.dyn) ) { KEEP(*(.realmode)) }
_i386boot_realmode = LOADADDR(.realmode);
_i386boot_realmode_size = SIZEOF(.realmode);
/* 16bit BIOS emulation code (just enough to boot Linux) */
- .bios 0 : AT ( LOADADDR(.realmode) + SIZEOF(.realmode) ) { *(.bios) }
+ .bios 0 : AT ( LOADADDR(.realmode) + SIZEOF(.realmode) ) { KEEP(*(.bios)) }
_i386boot_bios = LOADADDR(.bios);
_i386boot_bios_size = SIZEOF(.bios);
@@ -98,12 +98,12 @@ SECTIONS
* The fff0 offset of resetvec is important, however.
*/
. = 0xfffffe00;
- .start32 : AT (TEXT_BASE + 0x3fe00) { *(.start32); }
+ .start32 : AT (TEXT_BASE + 0x3fe00) { KEEP(*(.start32)); }
. = 0xf800;
- .start16 : AT (TEXT_BASE + 0x3f800) { *(.start16); }
+ .start16 : AT (TEXT_BASE + 0x3f800) { KEEP(*(.start16)); }
. = 0xfff0;
- .resetvec : AT (TEXT_BASE + 0x3fff0) { *(.resetvec); }
+ .resetvec : AT (TEXT_BASE + 0x3fff0) { KEEP(*(.resetvec)); }
_i386boot_end = (LOADADDR(.resetvec) + SIZEOF(.resetvec) );
}