From ca9111ef641f42ccb32610d8f3ac44767b062e94 Mon Sep 17 00:00:00 2001 From: Boris Gjenero Date: Sun, 18 Dec 2011 06:43:08 +0000 Subject: Add KEEP() around vectors in linker scripts. Vectors are needed by the CPU, but they don't need to be accessed by Rockbox. Without the KEEP(), they can be removed when liking with --gc-sections, creating a broken binary without any warnings. This tells the linker to not remove them. It should enable use of --gc-sections for all targets. When not using --gc-sections, this does not change the binary. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@31351 a1c6a512-1295-4272-9138-f99709370657 --- firmware/target/arm/ipod/app.lds | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'firmware/target/arm/ipod') diff --git a/firmware/target/arm/ipod/app.lds b/firmware/target/arm/ipod/app.lds index 9c7eb16391..f0773e0139 100644 --- a/firmware/target/arm/ipod/app.lds +++ b/firmware/target/arm/ipod/app.lds @@ -84,7 +84,7 @@ SECTIONS .vectors 0x0 : { _vectorsstart = .; - *(.vectors); + KEEP(*(.vectors)); _vectorsend = .; } AT> DRAM -- cgit