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:
parent
eb208c746d
commit
a5a28b6829
|
@ -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 = .;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue