summaryrefslogtreecommitdiff
path: root/arch
diff options
context:
space:
mode:
authorGraeme Russ <graeme.russ@gmail.com>2010-10-07 20:03:32 +1100
committerGraeme Russ <graeme.russ@gmail.com>2010-10-07 20:03:32 +1100
commit221914265860a47a0ba8bfa6956097cb045d9b39 (patch)
treeeb6e77213d11bfb1ef2e182bf8e3347a474e8f31 /arch
parent067f9b10710e4edee97a9220b2ea8841c646368b (diff)
x86: Rearrange linker script
Tidy up the linker script and discard some sections to save space
Diffstat (limited to 'arch')
-rw-r--r--arch/i386/lib/board.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/arch/i386/lib/board.c b/arch/i386/lib/board.c
index e7a363da706..3e89ef42827 100644
--- a/arch/i386/lib/board.c
+++ b/arch/i386/lib/board.c
@@ -49,6 +49,7 @@ DECLARE_GLOBAL_DATA_PTR;
/* Exports from the Linker Script */
extern ulong __text_start;
+extern ulong __data_end;
extern ulong __rel_dyn_start;
extern ulong __rel_dyn_end;
extern ulong __bss_start;
@@ -170,7 +171,7 @@ gd_t *gd;
void board_init_f (ulong gdp)
{
void *text_start = &__text_start;
- void *u_boot_cmd_end = &__u_boot_cmd_end;
+ void *data_end = &__data_end;
Elf32_Rel *rel_dyn_start = (Elf32_Rel *)&__rel_dyn_start;
Elf32_Rel *rel_dyn_end = (Elf32_Rel *)&__rel_dyn_end;
void *bss_start = &__bss_start;
@@ -181,7 +182,7 @@ void board_init_f (ulong gdp)
ulong rel_offset;
Elf32_Rel *re;
- uboot_size = (ulong)u_boot_cmd_end - (ulong)text_start;
+ uboot_size = (ulong)data_end - (ulong)text_start;
dest_addr = (void *)gdp - (uboot_size + (ulong)bss_size);
rel_offset = text_start - dest_addr;