mips: add __image_copy_len for SPL linker script
This patch adds __image_copy_len needed by TPL of MT7621 SoC. The __image_copy_len represents the binary blob size of both SPL/TPL binaries. To achieve this, __text_start/end are added for calculation. Reviewed-by: Daniel Schwierzeck <daniel.schwierzeck@gmail.com> Signed-off-by: Weijie Gao <weijie.gao@mediatek.com>
This commit is contained in:
committed by
Daniel Schwierzeck
parent
3a6cf2ded7
commit
9a3bbb0eba
@@ -13,7 +13,9 @@ SECTIONS
|
|||||||
|
|
||||||
. = ALIGN(4);
|
. = ALIGN(4);
|
||||||
.text : {
|
.text : {
|
||||||
|
__text_start = .;
|
||||||
*(.text*)
|
*(.text*)
|
||||||
|
__text_end = .;
|
||||||
} > .spl_mem
|
} > .spl_mem
|
||||||
|
|
||||||
. = ALIGN(4);
|
. = ALIGN(4);
|
||||||
@@ -36,6 +38,7 @@ SECTIONS
|
|||||||
|
|
||||||
. = ALIGN(4);
|
. = ALIGN(4);
|
||||||
__image_copy_end = .;
|
__image_copy_end = .;
|
||||||
|
__image_copy_len = __image_copy_end - __text_start;
|
||||||
|
|
||||||
_image_binary_end = .;
|
_image_binary_end = .;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user