summaryrefslogtreecommitdiffstats
path: root/arch/arm
diff options
context:
space:
mode:
authorLucas Stach <l.stach@pengutronix.de>2017-03-01 15:26:39 +0100
committerSascha Hauer <s.hauer@pengutronix.de>2017-03-03 07:06:06 +0100
commit0d0b426a6741306f0dab1be862a91c36fdcb87fd (patch)
tree3e37ce38e39dbf91741630bbba311e784f0be913 /arch/arm
parente2805b5ee515baa5f3319811db9d839cca215707 (diff)
downloadbarebox-0d0b426a6741306f0dab1be862a91c36fdcb87fd.tar.gz
barebox-0d0b426a6741306f0dab1be862a91c36fdcb87fd.tar.xz
ARM: align exception vectors to 32 byte
On ARMv7 the exception vectors inside the barebox binary are used directly by remapping the vectors base through the VBAR register. While VBAR allows to remap the exception vectors freely, it still imposes a minimum alignment of 32 byte, as the lower bits are treated as the exception vector offset. Enforce this alignment inside the barebox binary. Signed-off-by: Lucas Stach <l.stach@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'arch/arm')
-rw-r--r--arch/arm/lib32/barebox.lds.S2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/arm/lib32/barebox.lds.S b/arch/arm/lib32/barebox.lds.S
index b49c269a43..e7b87b7cdd 100644
--- a/arch/arm/lib32/barebox.lds.S
+++ b/arch/arm/lib32/barebox.lds.S
@@ -45,7 +45,7 @@ SECTIONS
__bare_init_start = .;
*(.text_bare_init*)
__bare_init_end = .;
- . = ALIGN(4);
+ . = ALIGN(0x20);
__exceptions_start = .;
KEEP(*(.text_exceptions*))
__exceptions_stop = .;