mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-29 08:01:08 +00:00
arm: do not compile relocate_code() for SPL builds
Signed-off-by: Albert ARIBAUD <albert.u.boot@aribaud.net> Reviewed-by: Benoît Thébaudeau <benoit.thebaudeau@advansee.com> Tested-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
parent
91607ac17e
commit
fa6c7413d1
13 changed files with 55 additions and 81 deletions
|
@ -104,10 +104,6 @@ _TEXT_BASE:
|
|||
_bss_start_ofs:
|
||||
.word __bss_start - _start
|
||||
|
||||
.globl _image_copy_end_ofs
|
||||
_image_copy_end_ofs:
|
||||
.word __image_copy_end - _start
|
||||
|
||||
.globl _bss_end_ofs
|
||||
_bss_end_ofs:
|
||||
.word __bss_end - _start
|
||||
|
@ -173,6 +169,7 @@ next:
|
|||
|
||||
/*------------------------------------------------------------------------------*/
|
||||
|
||||
#ifndef CONFIG_SPL_BUILD
|
||||
/*
|
||||
* void relocate_code(addr_moni)
|
||||
*
|
||||
|
@ -195,7 +192,6 @@ copy_loop:
|
|||
cmp r0, r2 /* until source end address [r2] */
|
||||
blo copy_loop
|
||||
|
||||
#ifndef CONFIG_SPL_BUILD
|
||||
/*
|
||||
* fix .rel.dyn relocations
|
||||
*/
|
||||
|
@ -233,14 +229,13 @@ fixnext:
|
|||
add r2, r2, #8 /* each rel.dyn entry is 8 bytes */
|
||||
cmp r2, r3
|
||||
blo fixloop
|
||||
#endif
|
||||
|
||||
relocate_done:
|
||||
|
||||
bx lr
|
||||
|
||||
#ifndef CONFIG_SPL_BUILD
|
||||
|
||||
_image_copy_end_ofs:
|
||||
.word __image_copy_end - _start
|
||||
_rel_dyn_start_ofs:
|
||||
.word __rel_dyn_start - _start
|
||||
_rel_dyn_end_ofs:
|
||||
|
|
|
@ -112,10 +112,6 @@ _TEXT_BASE:
|
|||
_bss_start_ofs:
|
||||
.word __bss_start - _start
|
||||
|
||||
.globl _image_copy_end_ofs
|
||||
_image_copy_end_ofs:
|
||||
.word __image_copy_end - _start
|
||||
|
||||
.globl _bss_end_ofs
|
||||
_bss_end_ofs:
|
||||
.word __bss_end - _start
|
||||
|
@ -225,6 +221,7 @@ skip_tcmdisable:
|
|||
|
||||
/*------------------------------------------------------------------------------*/
|
||||
|
||||
#ifndef CONFIG_SPL_BUILD
|
||||
/*
|
||||
* void relocate_code(addr_moni)
|
||||
*
|
||||
|
@ -247,7 +244,6 @@ copy_loop:
|
|||
cmp r0, r2 /* until source end address [r2] */
|
||||
blo copy_loop
|
||||
|
||||
#ifndef CONFIG_SPL_BUILD
|
||||
/*
|
||||
* fix .rel.dyn relocations
|
||||
*/
|
||||
|
@ -285,12 +281,13 @@ fixnext:
|
|||
add r2, r2, #8 /* each rel.dyn entry is 8 bytes */
|
||||
cmp r2, r3
|
||||
blo fixloop
|
||||
#endif
|
||||
|
||||
relocate_done:
|
||||
|
||||
bx lr
|
||||
|
||||
_image_copy_end_ofs:
|
||||
.word __image_copy_end - _start
|
||||
_rel_dyn_start_ofs:
|
||||
.word __rel_dyn_start - _start
|
||||
_rel_dyn_end_ofs:
|
||||
|
@ -298,6 +295,8 @@ _rel_dyn_end_ofs:
|
|||
_dynsym_start_ofs:
|
||||
.word __dynsym_start - _start
|
||||
|
||||
#endif
|
||||
|
||||
.globl c_runtime_cpu_setup
|
||||
c_runtime_cpu_setup:
|
||||
|
||||
|
|
|
@ -101,10 +101,6 @@ _TEXT_BASE:
|
|||
_bss_start_ofs:
|
||||
.word __bss_start - _start
|
||||
|
||||
.globl _image_copy_end_ofs
|
||||
_image_copy_end_ofs:
|
||||
.word __image_copy_end - _start
|
||||
|
||||
.globl _bss_end_ofs
|
||||
_bss_end_ofs:
|
||||
.word __bss_end - _start
|
||||
|
@ -155,6 +151,7 @@ reset:
|
|||
|
||||
/*------------------------------------------------------------------------------*/
|
||||
|
||||
#ifndef CONFIG_SPL_BUILD
|
||||
/*
|
||||
* void relocate_code(addr_moni)
|
||||
*
|
||||
|
@ -177,7 +174,6 @@ copy_loop:
|
|||
cmp r0, r2 /* until source end address [r2] */
|
||||
blo copy_loop
|
||||
|
||||
#ifndef CONFIG_SPL_BUILD
|
||||
/*
|
||||
* fix .rel.dyn relocations
|
||||
*/
|
||||
|
@ -215,12 +211,13 @@ fixnext:
|
|||
add r2, r2, #8 /* each rel.dyn entry is 8 bytes */
|
||||
cmp r2, r3
|
||||
blo fixloop
|
||||
#endif
|
||||
|
||||
relocate_done:
|
||||
|
||||
mov pc, lr
|
||||
|
||||
_image_copy_end_ofs:
|
||||
.word __image_copy_end - _start
|
||||
_rel_dyn_start_ofs:
|
||||
.word __rel_dyn_start - _start
|
||||
_rel_dyn_end_ofs:
|
||||
|
@ -228,6 +225,8 @@ _rel_dyn_end_ofs:
|
|||
_dynsym_start_ofs:
|
||||
.word __dynsym_start - _start
|
||||
|
||||
#endif
|
||||
|
||||
.globl c_runtime_cpu_setup
|
||||
c_runtime_cpu_setup:
|
||||
|
||||
|
|
|
@ -89,10 +89,6 @@ _TEXT_BASE:
|
|||
_bss_start_ofs:
|
||||
.word __bss_start - _start
|
||||
|
||||
.globl _image_copy_end_ofs
|
||||
_image_copy_end_ofs:
|
||||
.word __image_copy_end - _start
|
||||
|
||||
.globl _bss_end_ofs
|
||||
_bss_end_ofs:
|
||||
.word __bss_end - _start
|
||||
|
@ -194,6 +190,7 @@ copyex:
|
|||
|
||||
/*------------------------------------------------------------------------------*/
|
||||
|
||||
#ifndef CONFIG_SPL_BUILD
|
||||
/*
|
||||
* void relocate_code(addr_moni)
|
||||
*
|
||||
|
@ -216,7 +213,6 @@ copy_loop:
|
|||
cmp r0, r2 /* until source end address [r2] */
|
||||
blo copy_loop
|
||||
|
||||
#ifndef CONFIG_SPL_BUILD
|
||||
/*
|
||||
* fix .rel.dyn relocations
|
||||
*/
|
||||
|
@ -254,12 +250,12 @@ fixnext:
|
|||
add r2, r2, #8 /* each rel.dyn entry is 8 bytes */
|
||||
cmp r2, r3
|
||||
blo fixloop
|
||||
#endif
|
||||
|
||||
relocate_done:
|
||||
|
||||
mov pc, lr
|
||||
|
||||
_image_copy_end_ofs:
|
||||
.word __image_copy_end - _start
|
||||
_rel_dyn_start_ofs:
|
||||
.word __rel_dyn_start - _start
|
||||
_rel_dyn_end_ofs:
|
||||
|
@ -267,6 +263,8 @@ _rel_dyn_end_ofs:
|
|||
_dynsym_start_ofs:
|
||||
.word __dynsym_start - _start
|
||||
|
||||
#endif
|
||||
|
||||
.globl c_runtime_cpu_setup
|
||||
c_runtime_cpu_setup:
|
||||
|
||||
|
|
|
@ -95,10 +95,6 @@ _TEXT_BASE:
|
|||
_bss_start_ofs:
|
||||
.word __bss_start - _start
|
||||
|
||||
.globl _image_copy_end_ofs
|
||||
_image_copy_end_ofs:
|
||||
.word __image_copy_end - _start
|
||||
|
||||
.globl _bss_end_ofs
|
||||
_bss_end_ofs:
|
||||
.word __bss_end - _start
|
||||
|
@ -184,6 +180,7 @@ poll1:
|
|||
|
||||
/*------------------------------------------------------------------------------*/
|
||||
|
||||
#ifndef CONFIG_SPL_BUILD
|
||||
/*
|
||||
* void relocate_code(addr_moni)
|
||||
*
|
||||
|
@ -206,7 +203,6 @@ copy_loop:
|
|||
cmp r0, r2 /* until source end address [r2] */
|
||||
blo copy_loop
|
||||
|
||||
#ifndef CONFIG_SPL_BUILD
|
||||
/*
|
||||
* fix .rel.dyn relocations
|
||||
*/
|
||||
|
@ -244,12 +240,13 @@ fixnext:
|
|||
add r2, r2, #8 /* each rel.dyn entry is 8 bytes */
|
||||
cmp r2, r3
|
||||
blo fixloop
|
||||
#endif
|
||||
|
||||
relocate_done:
|
||||
|
||||
mov pc, lr
|
||||
|
||||
_image_copy_end_ofs:
|
||||
.word __image_copy_end - _start
|
||||
_rel_dyn_start_ofs:
|
||||
.word __rel_dyn_start - _start
|
||||
_rel_dyn_end_ofs:
|
||||
|
@ -257,6 +254,8 @@ _rel_dyn_end_ofs:
|
|||
_dynsym_start_ofs:
|
||||
.word __dynsym_start - _start
|
||||
|
||||
#endif
|
||||
|
||||
.globl c_runtime_cpu_setup
|
||||
c_runtime_cpu_setup:
|
||||
|
||||
|
|
|
@ -136,10 +136,6 @@ _TEXT_BASE:
|
|||
_bss_start_ofs:
|
||||
.word __bss_start - _start
|
||||
|
||||
.globl _image_copy_end_ofs
|
||||
_image_copy_end_ofs:
|
||||
.word __image_copy_end - _start
|
||||
|
||||
.globl _bss_end_ofs
|
||||
_bss_end_ofs:
|
||||
.word __bss_end - _start
|
||||
|
@ -190,6 +186,7 @@ reset:
|
|||
|
||||
/*------------------------------------------------------------------------------*/
|
||||
|
||||
#ifndef CONFIG_SPL_BUILD
|
||||
/*
|
||||
* void relocate_code(addr_moni)
|
||||
*
|
||||
|
@ -212,7 +209,6 @@ copy_loop:
|
|||
cmp r0, r2 /* until source end address [r2] */
|
||||
blo copy_loop
|
||||
|
||||
#ifndef CONFIG_SPL_BUILD
|
||||
/*
|
||||
* fix .rel.dyn relocations
|
||||
*/
|
||||
|
@ -250,14 +246,13 @@ fixnext:
|
|||
add r2, r2, #8 /* each rel.dyn entry is 8 bytes */
|
||||
cmp r2, r3
|
||||
blo fixloop
|
||||
#endif
|
||||
|
||||
relocate_done:
|
||||
|
||||
bx lr
|
||||
|
||||
#ifndef CONFIG_SPL_BUILD
|
||||
|
||||
_image_copy_end_ofs:
|
||||
.word __image_copy_end - _start
|
||||
_rel_dyn_start_ofs:
|
||||
.word __rel_dyn_start - _start
|
||||
_rel_dyn_end_ofs:
|
||||
|
|
|
@ -105,10 +105,6 @@ _TEXT_BASE:
|
|||
_bss_start_ofs:
|
||||
.word __bss_start - _start
|
||||
|
||||
.globl _image_copy_end_ofs
|
||||
_image_copy_end_ofs:
|
||||
.word __image_copy_end - _start
|
||||
|
||||
.globl _bss_end_ofs
|
||||
_bss_end_ofs:
|
||||
.word __bss_end - _start
|
||||
|
@ -159,6 +155,7 @@ reset:
|
|||
|
||||
/*------------------------------------------------------------------------------*/
|
||||
|
||||
#ifndef CONFIG_SPL_BUILD
|
||||
/*
|
||||
* void relocate_code(addr_moni)
|
||||
*
|
||||
|
@ -181,7 +178,6 @@ copy_loop:
|
|||
cmp r0, r2 /* until source end address [r2] */
|
||||
blo copy_loop
|
||||
|
||||
#ifndef CONFIG_SPL_BUILD
|
||||
/*
|
||||
* fix .rel.dyn relocations
|
||||
*/
|
||||
|
@ -219,12 +215,13 @@ fixnext:
|
|||
add r2, r2, #8 /* each rel.dyn entry is 8 bytes */
|
||||
cmp r2, r3
|
||||
blo fixloop
|
||||
#endif
|
||||
|
||||
relocate_done:
|
||||
|
||||
mov pc, lr
|
||||
|
||||
_image_copy_end_ofs:
|
||||
.word __image_copy_end - _start
|
||||
_rel_dyn_start_ofs:
|
||||
.word __rel_dyn_start - _start
|
||||
_rel_dyn_end_ofs:
|
||||
|
@ -232,6 +229,8 @@ _rel_dyn_end_ofs:
|
|||
_dynsym_start_ofs:
|
||||
.word __dynsym_start - _start
|
||||
|
||||
#endif
|
||||
|
||||
.globl c_runtime_cpu_setup
|
||||
c_runtime_cpu_setup:
|
||||
|
||||
|
|
|
@ -101,10 +101,6 @@ _TEXT_BASE:
|
|||
_bss_start_ofs:
|
||||
.word __bss_start - _start
|
||||
|
||||
.globl _image_copy_end_ofs
|
||||
_image_copy_end_ofs:
|
||||
.word __image_copy_end - _start
|
||||
|
||||
.globl _bss_end_ofs
|
||||
_bss_end_ofs:
|
||||
.word __bss_end - _start
|
||||
|
@ -155,6 +151,7 @@ reset:
|
|||
|
||||
/*------------------------------------------------------------------------------*/
|
||||
|
||||
#ifndef CONFIG_SPL_BUILD
|
||||
/*
|
||||
* void relocate_code(addr_moni)
|
||||
*
|
||||
|
@ -177,7 +174,6 @@ copy_loop:
|
|||
cmp r0, r2 /* until source end address [r2] */
|
||||
blo copy_loop
|
||||
|
||||
#ifndef CONFIG_SPL_BUILD
|
||||
/*
|
||||
* fix .rel.dyn relocations
|
||||
*/
|
||||
|
@ -215,12 +211,13 @@ fixnext:
|
|||
add r2, r2, #8 /* each rel.dyn entry is 8 bytes */
|
||||
cmp r2, r3
|
||||
blo fixloop
|
||||
#endif
|
||||
|
||||
relocate_done:
|
||||
|
||||
bx lr
|
||||
|
||||
_image_copy_end_ofs:
|
||||
.word __image_copy_end - _start
|
||||
_rel_dyn_start_ofs:
|
||||
.word __rel_dyn_start - _start
|
||||
_rel_dyn_end_ofs:
|
||||
|
@ -228,6 +225,8 @@ _rel_dyn_end_ofs:
|
|||
_dynsym_start_ofs:
|
||||
.word __dynsym_start - _start
|
||||
|
||||
#endif
|
||||
|
||||
.globl c_runtime_cpu_setup
|
||||
c_runtime_cpu_setup:
|
||||
|
||||
|
|
|
@ -94,10 +94,6 @@ _TEXT_BASE:
|
|||
_bss_start_ofs:
|
||||
.word __bss_start - _start
|
||||
|
||||
.globl _image_copy_end_ofs
|
||||
_image_copy_end_ofs:
|
||||
.word __image_copy_end - _start
|
||||
|
||||
.globl _bss_end_ofs
|
||||
_bss_end_ofs:
|
||||
.word __bss_end - _start
|
||||
|
@ -231,6 +227,8 @@ relocate_done:
|
|||
|
||||
bx lr
|
||||
|
||||
_image_copy_end_ofs:
|
||||
.word __image_copy_end - _start
|
||||
_rel_dyn_start_ofs:
|
||||
.word __rel_dyn_start - _start
|
||||
_rel_dyn_end_ofs:
|
||||
|
|
|
@ -114,10 +114,6 @@ _TEXT_BASE:
|
|||
_bss_start_ofs:
|
||||
.word __bss_start - _start
|
||||
|
||||
.globl _image_copy_end_ofs
|
||||
_image_copy_end_ofs:
|
||||
.word __image_copy_end - _start
|
||||
|
||||
.globl _bss_end_ofs
|
||||
_bss_end_ofs:
|
||||
.word __bss_end - _start
|
||||
|
@ -257,6 +253,7 @@ reset:
|
|||
|
||||
/*------------------------------------------------------------------------------*/
|
||||
|
||||
#ifndef CONFIG_SPL_BUILD
|
||||
/*
|
||||
* void relocate_code(addr_moni)
|
||||
*
|
||||
|
@ -279,7 +276,6 @@ copy_loop:
|
|||
cmp r0, r2 /* until source end address [r2] */
|
||||
blo copy_loop
|
||||
|
||||
#ifndef CONFIG_SPL_BUILD
|
||||
/*
|
||||
* fix .rel.dyn relocations
|
||||
*/
|
||||
|
@ -317,12 +313,13 @@ fixnext:
|
|||
add r2, r2, #8 /* each rel.dyn entry is 8 bytes */
|
||||
cmp r2, r3
|
||||
blo fixloop
|
||||
#endif
|
||||
|
||||
relocate_done:
|
||||
|
||||
bx lr
|
||||
|
||||
_image_copy_end_ofs:
|
||||
.word __image_copy_end - _start
|
||||
_rel_dyn_start_ofs:
|
||||
.word __rel_dyn_start - _start
|
||||
_rel_dyn_end_ofs:
|
||||
|
@ -330,6 +327,8 @@ _rel_dyn_end_ofs:
|
|||
_dynsym_start_ofs:
|
||||
.word __dynsym_start - _start
|
||||
|
||||
#endif
|
||||
|
||||
.globl c_runtime_cpu_setup
|
||||
c_runtime_cpu_setup:
|
||||
|
||||
|
|
|
@ -118,10 +118,6 @@ _TEXT_BASE:
|
|||
_bss_start_ofs:
|
||||
.word __bss_start - _start
|
||||
|
||||
.globl _image_copy_end_ofs
|
||||
_image_copy_end_ofs:
|
||||
.word __image_copy_end - _start
|
||||
|
||||
.globl _bss_end_ofs
|
||||
_bss_end_ofs:
|
||||
.word __bss_end - _start
|
||||
|
@ -201,7 +197,6 @@ copy_loop:
|
|||
cmp r0, r2 /* until source end address [r2] */
|
||||
blo copy_loop
|
||||
|
||||
#ifndef CONFIG_SPL_BUILD
|
||||
/*
|
||||
* fix .rel.dyn relocations
|
||||
*/
|
||||
|
@ -239,12 +234,13 @@ fixnext:
|
|||
add r2, r2, #8 /* each rel.dyn entry is 8 bytes */
|
||||
cmp r2, r3
|
||||
blo fixloop
|
||||
#endif
|
||||
|
||||
relocate_done:
|
||||
|
||||
bx lr
|
||||
|
||||
_image_copy_end_ofs:
|
||||
.word __image_copy_end - _start
|
||||
_rel_dyn_start_ofs:
|
||||
.word __rel_dyn_start - _start
|
||||
_rel_dyn_end_ofs:
|
||||
|
|
|
@ -80,10 +80,6 @@ _TEXT_BASE:
|
|||
_bss_start_ofs:
|
||||
.word __bss_start - _start
|
||||
|
||||
.globl _image_copy_end_ofs
|
||||
_image_copy_end_ofs:
|
||||
.word __image_copy_end - _start
|
||||
|
||||
.globl _bss_end_ofs
|
||||
_bss_end_ofs:
|
||||
.word __bss_end - _start
|
||||
|
@ -140,6 +136,7 @@ reset:
|
|||
|
||||
/*------------------------------------------------------------------------------*/
|
||||
|
||||
#ifndef CONFIG_SPL_BUILD
|
||||
/*
|
||||
* void relocate_code(addr_moni)
|
||||
*
|
||||
|
@ -162,7 +159,6 @@ copy_loop:
|
|||
cmp r0, r2 /* until source end address [r2] */
|
||||
blo copy_loop
|
||||
|
||||
#ifndef CONFIG_SPL_BUILD
|
||||
/*
|
||||
* fix .rel.dyn relocations
|
||||
*/
|
||||
|
@ -200,12 +196,13 @@ fixnext:
|
|||
add r2, r2, #8 /* each rel.dyn entry is 8 bytes */
|
||||
cmp r2, r3
|
||||
blo fixloop
|
||||
#endif
|
||||
|
||||
relocate_done:
|
||||
|
||||
bx lr
|
||||
|
||||
_image_copy_end_ofs:
|
||||
.word __image_copy_end - _start
|
||||
_rel_dyn_start_ofs:
|
||||
.word __rel_dyn_start - _start
|
||||
_rel_dyn_end_ofs:
|
||||
|
@ -213,6 +210,8 @@ _rel_dyn_end_ofs:
|
|||
_dynsym_start_ofs:
|
||||
.word __dynsym_start - _start
|
||||
|
||||
#endif
|
||||
|
||||
.globl c_runtime_cpu_setup
|
||||
c_runtime_cpu_setup:
|
||||
|
||||
|
|
|
@ -90,10 +90,6 @@ _TEXT_BASE:
|
|||
_bss_start_ofs:
|
||||
.word __bss_start - _start
|
||||
|
||||
.globl _image_copy_end_ofs
|
||||
_image_copy_end_ofs:
|
||||
.word __image_copy_end - _start
|
||||
|
||||
.globl _bss_end_ofs
|
||||
_bss_end_ofs:
|
||||
.word __bss_end - _start
|
||||
|
@ -144,6 +140,7 @@ reset:
|
|||
|
||||
/*------------------------------------------------------------------------------*/
|
||||
|
||||
#ifndef CONFIG_SPL_BUILD
|
||||
/*
|
||||
* void relocate_code(addr_moni)
|
||||
*
|
||||
|
@ -166,7 +163,6 @@ copy_loop:
|
|||
cmp r0, r2 /* until source end address [r2] */
|
||||
blo copy_loop
|
||||
|
||||
#ifndef CONFIG_SPL_BUILD
|
||||
/*
|
||||
* fix .rel.dyn relocations
|
||||
*/
|
||||
|
@ -204,12 +200,13 @@ fixnext:
|
|||
add r2, r2, #8 /* each rel.dyn entry is 8 bytes */
|
||||
cmp r2, r3
|
||||
blo fixloop
|
||||
#endif
|
||||
|
||||
relocate_done:
|
||||
|
||||
mov pc, lr
|
||||
|
||||
_image_copy_end_ofs:
|
||||
.word __image_copy_end - _start
|
||||
_rel_dyn_start_ofs:
|
||||
.word __rel_dyn_start - _start
|
||||
_rel_dyn_end_ofs:
|
||||
|
@ -217,6 +214,8 @@ _rel_dyn_end_ofs:
|
|||
_dynsym_start_ofs:
|
||||
.word __dynsym_start - _start
|
||||
|
||||
#endif
|
||||
|
||||
.globl c_runtime_cpu_setup
|
||||
c_runtime_cpu_setup:
|
||||
|
||||
|
|
Loading…
Reference in a new issue