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/test/i2c/app.lds | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'firmware/test/i2c/app.lds') diff --git a/firmware/test/i2c/app.lds b/firmware/test/i2c/app.lds index 192ee1d2a4..b8a341a8ae 100644 --- a/firmware/test/i2c/app.lds +++ b/firmware/test/i2c/app.lds @@ -4,7 +4,7 @@ SECTIONS { .text 0x09010000 : { - *(.vectors) + KEEP(*(.vectors)) . = ALIGN(0x200); *(.init.text) } -- cgit v1.2.3