diff options
author | Boris Gjenero <dreamlayers@rockbox.org> | 2011-12-18 06:43:08 +0000 |
---|---|---|
committer | Boris Gjenero <dreamlayers@rockbox.org> | 2011-12-18 06:43:08 +0000 |
commit | ca9111ef641f42ccb32610d8f3ac44767b062e94 (patch) | |
tree | 09ae9a1760e8eae9a502b24c2b5cc8981cc73837 /firmware/test/kernel | |
parent | dc07503ad4f6f9722baddddca5ba7abe22ec34ba (diff) |
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
Diffstat (limited to 'firmware/test/kernel')
-rw-r--r-- | firmware/test/kernel/app.lds | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/firmware/test/kernel/app.lds b/firmware/test/kernel/app.lds index 192ee1d2a4..b8a341a8ae 100644 --- a/firmware/test/kernel/app.lds +++ b/firmware/test/kernel/app.lds @@ -4,7 +4,7 @@ SECTIONS { .text 0x09010000 : { - *(.vectors) + KEEP(*(.vectors)) . = ALIGN(0x200); *(.init.text) } |