mirror of
https://github.com/Fishwaldo/u-boot.git
synced 2025-07-23 15:27:52 +00:00
Conditionally perform common relocation fixups
Add #ifdefs where necessary to not perform relocation fixups. This allows boards/architectures which support relocation to trim a decent chunk of code. Note that this patch doesn't add #ifdefs to architecture-specific code which does not support relocation. Signed-off-by: Peter Tyser <ptyser@xes-inc.com>
This commit is contained in:
parent
3cbcfa70b1
commit
521af04d85
13 changed files with 41 additions and 5 deletions
|
@ -1494,6 +1494,7 @@ static mbinptr av_[NAV * 2 + 2] = {
|
|||
IAV(120), IAV(121), IAV(122), IAV(123), IAV(124), IAV(125), IAV(126), IAV(127)
|
||||
};
|
||||
|
||||
#ifndef CONFIG_RELOC_FIXUP_WORKS
|
||||
void malloc_bin_reloc (void)
|
||||
{
|
||||
unsigned long *p = (unsigned long *)(&av_[2]);
|
||||
|
@ -1502,6 +1503,7 @@ void malloc_bin_reloc (void)
|
|||
*p++ += gd->reloc_off;
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
ulong mem_malloc_start = 0;
|
||||
ulong mem_malloc_end = 0;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue