summaryrefslogtreecommitdiffstats
path: root/arch
diff options
context:
space:
mode:
authorSascha Hauer <sha@octopus.labnet.pengutronix.de>2007-07-25 12:34:06 +0200
committerSascha Hauer <sha@octopus.labnet.pengutronix.de>2007-07-25 12:34:06 +0200
commit7989a989b91f0184a1e6f437be1e2ec47bf3d10d (patch)
tree4762c174ce8bfecae6caebf38bd9b7bdb8e3f897 /arch
parent654bb6b0b88504a0768d706a207085cc5064640e (diff)
downloadbarebox-7989a989b91f0184a1e6f437be1e2ec47bf3d10d.tar.gz
barebox-7989a989b91f0184a1e6f437be1e2ec47bf3d10d.tar.xz
arm: use linker section for reset vector
Put the reset vector at the beginning of the binary by creating its own section in the linker script rather than specifying the file. Signed-off-by: Juergen Beisert <jbe@pengutronix.de> Acked-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'arch')
-rw-r--r--arch/arm/cpu/Makefile3
-rw-r--r--arch/arm/cpu/start-arm920t.S1
2 files changed, 3 insertions, 1 deletions
diff --git a/arch/arm/cpu/Makefile b/arch/arm/cpu/Makefile
index 8734f7e8e9..4670c8b696 100644
--- a/arch/arm/cpu/Makefile
+++ b/arch/arm/cpu/Makefile
@@ -1,3 +1,4 @@
obj-y += cpu.o
obj-y += interrupts.o
-extra-y += start-arm920t.o
+obj-y += start-arm920t.o
+
diff --git a/arch/arm/cpu/start-arm920t.S b/arch/arm/cpu/start-arm920t.S
index ecc505c5e1..111f1bd3b8 100644
--- a/arch/arm/cpu/start-arm920t.S
+++ b/arch/arm/cpu/start-arm920t.S
@@ -36,6 +36,7 @@
*************************************************************************
*/
+ .section ".text_entry","ax"
.globl _start
_start: b reset