summaryrefslogtreecommitdiffstats
path: root/include/asm-generic
diff options
context:
space:
mode:
authorMenon, Nishanth <x0nishan@ti.com>2008-05-12 15:52:23 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2008-05-12 15:52:23 +0200
commit22d3dc0d272c7294bfac2eb09f1b75c9622299b3 (patch)
tree01b436a52843b0948d432d6ce0e2a1d07488e637 /include/asm-generic
parentcb73b0c227daf37bb9422b9dce29c3576d4a5af3 (diff)
downloadbarebox-22d3dc0d272c7294bfac2eb09f1b75c9622299b3.tar.gz
barebox-22d3dc0d272c7294bfac2eb09f1b75c9622299b3.tar.xz
[arm] remove unsused sections while linking
Diffstat (limited to 'include/asm-generic')
-rw-r--r--include/asm-generic/u-boot.lds.h20
1 files changed, 10 insertions, 10 deletions
diff --git a/include/asm-generic/u-boot.lds.h b/include/asm-generic/u-boot.lds.h
index e24181a5c9..e32ea5715a 100644
--- a/include/asm-generic/u-boot.lds.h
+++ b/include/asm-generic/u-boot.lds.h
@@ -1,14 +1,14 @@
#define INITCALLS \
- *(.initcall.0) \
- *(.initcall.1) \
- *(.initcall.2) \
- *(.initcall.3) \
- *(.initcall.4) \
- *(.initcall.5) \
- *(.initcall.6) \
- *(.initcall.7)
+ KEEP(*(.initcall.0)) \
+ KEEP(*(.initcall.1)) \
+ KEEP(*(.initcall.2)) \
+ KEEP(*(.initcall.3)) \
+ KEEP(*(.initcall.4)) \
+ KEEP(*(.initcall.5)) \
+ KEEP(*(.initcall.6)) \
+ KEEP(*(.initcall.7))
-#define U_BOOT_CMDS *(SORT_BY_NAME(.u_boot_cmd*))
+#define U_BOOT_CMDS KEEP(*(SORT_BY_NAME(.u_boot_cmd*)))
-#define U_BOOT_SYMS *(__usymtab)
+#define U_BOOT_SYMS KEEP(*(__usymtab))