Skip to content

Commit 9a3bbb0

Browse files
hackpascaldanielschwierzeck
authored andcommitted
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 <[email protected]> Signed-off-by: Weijie Gao <[email protected]>
1 parent 3a6cf2d commit 9a3bbb0

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Diff for: arch/mips/cpu/u-boot-spl.lds

+3
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,9 @@ SECTIONS
1313

1414
. = ALIGN(4);
1515
.text : {
16+
__text_start = .;
1617
*(.text*)
18+
__text_end = .;
1719
} > .spl_mem
1820

1921
. = ALIGN(4);
@@ -36,6 +38,7 @@ SECTIONS
3638

3739
. = ALIGN(4);
3840
__image_copy_end = .;
41+
__image_copy_len = __image_copy_end - __text_start;
3942

4043
_image_binary_end = .;
4144

0 commit comments

Comments
 (0)