9
0
Fork 0

003-lds-handle

[Patch 03/17] U-Boot-V2:ARM: Fix lds file for multiple section enable.
By enabling -fdata-sections -ffunction-sections in arch/arm/Makefile, gcc splits the code into multiple section.
by using * wildcard we can bunch them into the areas we want them to be.

Signed-off-by: Nishanth Menon<x0nishan@ti.com>
This commit is contained in:
Nishanth Menon 2008-06-05 19:45:11 +02:00 committed by Sascha Hauer
parent eb208c746d
commit a5a28b6829
1 changed files with 6 additions and 6 deletions

View File

@ -36,20 +36,20 @@ SECTIONS
{
_stext = .;
_text = .;
*(.text_entry)
*(.text)
*(.text_entry*)
*(.text*)
}
. = ALIGN(4);
.rodata : { *(.rodata) }
.rodata : { *(.rodata*) }
_etext = .; /* End of text and rodata section */
. = ALIGN(4);
.data : { *(.data) }
.data : { *(.data*) }
. = ALIGN(4);
.got : { *(.got) }
.got : { *(.got*) }
. = .;
__u_boot_cmd_start = .;
@ -66,6 +66,6 @@ SECTIONS
. = ALIGN(4);
__bss_start = .;
.bss : { *(.bss) }
.bss : { *(.bss*) }
_end = .;
}