summaryrefslogtreecommitdiffstats
path: root/firmware/target/arm/s3c2440
diff options
context:
space:
mode:
authorBoris Gjenero <dreamlayers@rockbox.org>2011-12-18 06:43:08 +0000
committerBoris Gjenero <dreamlayers@rockbox.org>2011-12-18 06:43:08 +0000
commitca9111ef641f42ccb32610d8f3ac44767b062e94 (patch)
tree09ae9a1760e8eae9a502b24c2b5cc8981cc73837 /firmware/target/arm/s3c2440
parentdc07503ad4f6f9722baddddca5ba7abe22ec34ba (diff)
downloadrockbox-ca9111ef641f42ccb32610d8f3ac44767b062e94.tar.gz
rockbox-ca9111ef641f42ccb32610d8f3ac44767b062e94.tar.bz2
rockbox-ca9111ef641f42ccb32610d8f3ac44767b062e94.zip
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/target/arm/s3c2440')
-rw-r--r--firmware/target/arm/s3c2440/app.lds2
-rw-r--r--firmware/target/arm/s3c2440/boot.lds2
2 files changed, 2 insertions, 2 deletions
diff --git a/firmware/target/arm/s3c2440/app.lds b/firmware/target/arm/s3c2440/app.lds
index bdc7380a54..7e7ab1acfd 100644
--- a/firmware/target/arm/s3c2440/app.lds
+++ b/firmware/target/arm/s3c2440/app.lds
@@ -35,7 +35,7 @@ SECTIONS
.vectors DRAMORIG :
{
_vectorstart = .;
- *(.vectors*);
+ KEEP(*(.vectors*));
*(.init.text)
. = ALIGN(0x4);
} > DRAM
diff --git a/firmware/target/arm/s3c2440/boot.lds b/firmware/target/arm/s3c2440/boot.lds
index 13b6344afb..302fedda33 100644
--- a/firmware/target/arm/s3c2440/boot.lds
+++ b/firmware/target/arm/s3c2440/boot.lds
@@ -23,7 +23,7 @@ SECTIONS
.vectors DRAMORIG :
{
_vectorstart = .;
- *(.vectors*);
+ KEEP(*(.vectors*));
*(.init.text)
. = ALIGN(0x4);
} > DRAM