mirror of
https://github.com/u-boot/u-boot.git
synced 2025-05-09 03:21:51 +00: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:
parent
506df9dc58
commit
ccea96f443
21 changed files with 59 additions and 59 deletions
|
@ -51,7 +51,7 @@ static inline uintptr_t __attribute__((no_instrument_function))
|
|||
uintptr_t offset = (uintptr_t)func_ptr;
|
||||
|
||||
#ifdef CONFIG_SANDBOX
|
||||
offset -= (uintptr_t)&_init;
|
||||
offset -= (uintptr_t)_init;
|
||||
#else
|
||||
if (gd->flags & GD_FLG_RELOC)
|
||||
offset -= gd->relocaddr;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue