9
0
Fork 0

update linker scripts:

- add _stext and _etext symbols
- add symtabd section
This commit is contained in:
Sascha Hauer 2007-10-01 10:23:49 +02:00
parent 3bded8c370
commit 86397e0c7e
3 changed files with 22 additions and 3 deletions

View File

@ -75,6 +75,10 @@ SECTIONS
.u_boot_initcalls : { INITCALLS }
___u_boot_initcalls_end = .;
__u_boot_symtab_start = .;
.u_boot_symtab : { U_BOOT_SYMS }
__u_boot_symtab_end = .;
. = ALIGN(4);
__bss_start = .;
.bss : { *(.bss) }

View File

@ -28,8 +28,11 @@ OUTPUT_ARCH("powerpc")
__DYNAMIC = 0; */
SECTIONS
{
. = TEXT_BASE;
_text = .;
_stext = .;
/* Read-only sections, merged into text segment: */
. = + SIZEOF_HEADERS;
. = . + SIZEOF_HEADERS;
.interp : { *(.interp) }
.hash : { *(.hash) }
.dynsym : { *(.dynsym) }
@ -68,7 +71,7 @@ SECTIONS
/* Read-write section, merged into data segment: */
. = (. + 0x0FFF) & 0xFFFFF000;
_erotext = .;
_etext = .;
PROVIDE (erotext = .);
.reloc :
{
@ -104,6 +107,10 @@ SECTIONS
__u_boot_initcalls_end = .;
__initcall_entries = (__u_boot_initcalls_end - __u_boot_initcalls_start) >> 2;
__u_boot_symtab_start = .;
.u_boot_symtab : { U_BOOT_SYMS }
__u_boot_symtab_end = .;
__early_init_data_begin = .;
.early_init_data : { *(.early_init_data) }
__early_init_data_end = .;

View File

@ -29,11 +29,13 @@ OUTPUT_ARCH(arm)
ENTRY(_start)
SECTIONS
{
. = 0x00000000;
. = TEXT_BASE;
. = ALIGN(4);
.text :
{
_stext = .;
_text = .;
arch/arm/cpu/start-arm920t.o (.text)
*(.text)
}
@ -41,6 +43,8 @@ SECTIONS
. = ALIGN(4);
.rodata : { *(.rodata) }
_etext = .; /* End of text and rodata section */
. = ALIGN(4);
.data : { *(.data) }
@ -56,6 +60,10 @@ SECTIONS
.u_boot_initcalls : { INITCALLS }
__u_boot_initcalls_end = .;
__u_boot_symtab_start = .;
.u_boot_symtab : { U_BOOT_SYMS }
__u_boot_symtab_end = .;
. = ALIGN(4);
__bss_start = .;
.bss : { *(.bss) }