diff options
author | Andreas Bießmann <andreas.devel@googlemail.com> | 2013-11-27 16:09:29 +0100 |
---|---|---|
committer | Albert ARIBAUD <albert.u.boot@aribaud.net> | 2014-01-14 12:38:47 +0100 |
commit | 6ba2bc8fa9be4bd09ec43e39cb8e666480ef010c (patch) | |
tree | 47d6447cee038923acd58af3bc314077b48911b2 /arch/arm/lib | |
parent | e6fe4bd989b93b1f37a25771fc14478dd33aa0df (diff) | |
download | u-boot-imx-6ba2bc8fa9be4bd09ec43e39cb8e666480ef010c.zip u-boot-imx-6ba2bc8fa9be4bd09ec43e39cb8e666480ef010c.tar.gz u-boot-imx-6ba2bc8fa9be4bd09ec43e39cb8e666480ef010c.tar.bz2 |
arm: use canonical sub mnemonic
Building some arm boards with older binutils may produce errors like this:
---8<---
crt0.S: Assembler messages:
crt0.S:70: Error: register expected, not '#(184)' -- `sub sp,#(184)'
--->8---
Use canonical version of the subtract mnemonic to avoid those issues.
Reported-by: Alexey Smishlayev <alexey@xtech2.lv>
Signed-off-by: Andreas Bießmann <andreas.devel@googlemail.com>
Diffstat (limited to 'arch/arm/lib')
-rw-r--r-- | arch/arm/lib/crt0.S | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/arm/lib/crt0.S b/arch/arm/lib/crt0.S index ac54b93..dfc2de9 100644 --- a/arch/arm/lib/crt0.S +++ b/arch/arm/lib/crt0.S @@ -67,7 +67,7 @@ ENTRY(_main) ldr sp, =(CONFIG_SYS_INIT_SP_ADDR) #endif bic sp, sp, #7 /* 8-byte alignment for ABI compliance */ - sub sp, #GD_SIZE /* allocate one GD above SP */ + sub sp, sp, #GD_SIZE /* allocate one GD above SP */ bic sp, sp, #7 /* 8-byte alignment for ABI compliance */ mov r9, sp /* GD is above SP */ mov r0, #0 |