mirror of
https://xff.cz/git/u-boot/
synced 2025-10-04 08:51:43 +02:00
treewide: unify the linker symbol reference format
Now all linker symbols are declared as type char[]. Though we can reference the address via both the array name 'var' and its address '&var'. It's better to unify them to avoid confusing developers. This patch converts all '&var' linker symbol refrences to the most commonly used format 'var'. Signed-off-by: Shiji Yang <yangshiji66@outlook.com> Reviewed-by: Tom Rini <trini@konsulko.com>
This commit is contained in:
@@ -146,7 +146,7 @@ void relocate_code(ulong start_addr_sp, gd_t *new_gd, ulong relocaddr)
|
||||
|
||||
/* Clear the .bss section */
|
||||
bss_start = (uint8_t *)((unsigned long)__bss_start + off);
|
||||
bss_len = (unsigned long)&__bss_end - (unsigned long)__bss_start;
|
||||
bss_len = (unsigned long)__bss_end - (unsigned long)__bss_start;
|
||||
memset(bss_start, 0, bss_len);
|
||||
|
||||
/* Jump to the relocated U-Boot */
|
||||
|
Reference in New Issue
Block a user