diff options
author | Graeme Russ <graeme.russ@gmail.com> | 2010-10-07 20:03:32 +1100 |
---|---|---|
committer | Graeme Russ <graeme.russ@gmail.com> | 2010-10-07 20:03:32 +1100 |
commit | 221914265860a47a0ba8bfa6956097cb045d9b39 (patch) | |
tree | eb6e77213d11bfb1ef2e182bf8e3347a474e8f31 /arch/i386 | |
parent | 067f9b10710e4edee97a9220b2ea8841c646368b (diff) | |
download | u-boot-imx-221914265860a47a0ba8bfa6956097cb045d9b39.zip u-boot-imx-221914265860a47a0ba8bfa6956097cb045d9b39.tar.gz u-boot-imx-221914265860a47a0ba8bfa6956097cb045d9b39.tar.bz2 |
x86: Rearrange linker script
Tidy up the linker script and discard some sections to save space
Diffstat (limited to 'arch/i386')
-rw-r--r-- | arch/i386/lib/board.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/arch/i386/lib/board.c b/arch/i386/lib/board.c index e7a363d..3e89ef4 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; |