diff options
author | Simon Glass <sjg@chromium.org> | 2011-07-31 07:33:23 +1200 |
---|---|---|
committer | Simon Glass <sjg@chromium.org> | 2011-09-14 21:55:43 -0700 |
commit | f23e5f319d6bcdd869571ddd96e01ec780806648 (patch) | |
tree | 5d952c552797d830c25516962fd84bc6887fbd1f /arch/arm/lib | |
parent | 45943ddd690d6d5cc6778647543fd4efac89e7ab (diff) |
postload: Add new _reloc_end to define end of relocated area
Rather than __bss_end, define a new symbol which sets the end boundary of
code to be relocated by relocate_code(). This allows us to add code after
the BSS section which is still relocatable.
BUG=chromium-os:17053
TEST=build and boot U-Boot on seaboard
Change-Id: Ice784ee65ab8cbb7d2b996dc53c722c5dd9315c0
Reviewed-on: http://gerrit.chromium.org/gerrit/7660
Reviewed-by: Che-Liang Chiou <clchiou@chromium.org>
Reviewed-by: Tom Wai-Hong Tam <waihong@chromium.org>
Tested-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'arch/arm/lib')
-rw-r--r-- | arch/arm/lib/board.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/arm/lib/board.c b/arch/arm/lib/board.c index 5bcdf138309..460b68ae002 100644 --- a/arch/arm/lib/board.c +++ b/arch/arm/lib/board.c @@ -310,7 +310,7 @@ void board_init_f (ulong bootflag) memset ((void*)gd, 0, sizeof (gd_t)); - gd->mon_len = _bss_end_ofs; + gd->mon_len = _reloc_end_ofs; #ifdef CONFIG_OF_EMBED /* Get a pointer to the FDT */ gd->blob = _binary_dt_dtb_start; |