[457] | 1 | MEMORY
|
---|
| 2 | {
|
---|
| 3 | ROM (rx) : ORIGIN = 0x08000000, LENGTH = 2048K
|
---|
| 4 | RAM (rwx) : ORIGIN = 0x20000000, LENGTH = 480K
|
---|
| 5 | ETH_RAM(rwx) : ORIGIN = 0x20078000, LENGTH = 32K
|
---|
| 6 | }
|
---|
| 7 |
|
---|
| 8 | OUTPUT_FORMAT("elf32-littlearm", "elf32-bigarm","elf32-littlearm")
|
---|
| 9 | OUTPUT_ARCH(arm)
|
---|
| 10 |
|
---|
| 11 | PROVIDE(hardware_init_hook = 0);
|
---|
| 12 | PROVIDE(software_init_hook = 0);
|
---|
| 13 | PROVIDE(software_term_hook = 0);
|
---|
| 14 | STARTUP(start.o)
|
---|
| 15 |
|
---|
| 16 | SECTIONS
|
---|
| 17 | {
|
---|
| 18 | .text :
|
---|
| 19 | {
|
---|
| 20 | __text = . ;
|
---|
| 21 | *(.vector)
|
---|
| 22 | . = ALIGN(16);
|
---|
| 23 | *(.text*)
|
---|
| 24 | *(.glue_7t)
|
---|
| 25 | *(.glue_7)
|
---|
| 26 | } > ROM
|
---|
| 27 | _etext = . ;
|
---|
| 28 | PROVIDE (etext = .) ;
|
---|
| 29 |
|
---|
| 30 | .rodata : {
|
---|
| 31 | *(.rodata*)
|
---|
| 32 | } > ROM
|
---|
| 33 |
|
---|
| 34 | . = ALIGN(4);
|
---|
| 35 | __idata_start = . ;
|
---|
| 36 | .data : AT(__idata_start)
|
---|
| 37 | {
|
---|
| 38 | __data_start = . ;
|
---|
| 39 | *(vtable)
|
---|
| 40 | *(.data*)
|
---|
| 41 | } > RAM
|
---|
| 42 | __idata_end = __idata_start + SIZEOF(.data);
|
---|
| 43 | _edata = . ;
|
---|
| 44 | PROVIDE (edata = .);
|
---|
| 45 | . = ALIGN(4);
|
---|
| 46 |
|
---|
| 47 | .bss :
|
---|
| 48 | {
|
---|
| 49 | __bss_start = . ;
|
---|
| 50 | *(.bss*)
|
---|
| 51 | *(COMMON)
|
---|
| 52 | . = ALIGN(32 / 8);
|
---|
| 53 | } > RAM
|
---|
| 54 | . = ALIGN(32 / 8);
|
---|
| 55 | _end = . ;
|
---|
| 56 | __bss_end = .;
|
---|
| 57 | PROVIDE (end = .) ;
|
---|
| 58 |
|
---|
| 59 | .ethDataSection (NOLOAD) : { *(.ethDataSection) } > ETH_RAM
|
---|
| 60 | .comment 0 : { *(.comment) }
|
---|
| 61 |
|
---|
| 62 | /* DWARF debug sections.
|
---|
| 63 | Symbols in the DWARF debugging sections are relative to
|
---|
| 64 | the beginning of the section so we begin them at 0. */
|
---|
| 65 |
|
---|
| 66 | /* DWARF 1 */
|
---|
| 67 | .debug 0 : { *(.debug) }
|
---|
| 68 | .line 0 : { *(.line) }
|
---|
| 69 |
|
---|
| 70 | /* GNU DWARF 1 extensions */
|
---|
| 71 | .debug_srcinfo 0 : { *(.debug_srcinfo) }
|
---|
| 72 | .debug_sfnames 0 : { *(.debug_sfnames) }
|
---|
| 73 |
|
---|
| 74 | /* DWARF 1.1 and DWARF 2 */
|
---|
| 75 | .debug_aranges 0 : { *(.debug_aranges) }
|
---|
| 76 | .debug_pubnames 0 : { *(.debug_pubnames) }
|
---|
| 77 |
|
---|
| 78 | /* DWARF 2 */
|
---|
| 79 | .debug_info 0 : { *(.debug_info) }
|
---|
| 80 | .debug_abbrev 0 : { *(.debug_abbrev) }
|
---|
| 81 | .debug_line 0 : { *(.debug_line) }
|
---|
| 82 | .debug_frame 0 : { *(.debug_frame) }
|
---|
| 83 | .debug_str 0 : { *(.debug_str) }
|
---|
| 84 | .debug_loc 0 : { *(.debug_loc) }
|
---|
| 85 | .debug_macinfo 0 : { *(.debug_macinfo) }
|
---|
| 86 |
|
---|
| 87 | /* SGI/MIPS DWARF 2 extensions */
|
---|
| 88 | .debug_weaknames 0 : { *(.debug_weaknames) }
|
---|
| 89 | .debug_funcnames 0 : { *(.debug_funcnames) }
|
---|
| 90 | .debug_typenames 0 : { *(.debug_typenames) }
|
---|
| 91 | .debug_varnames 0 : { *(.debug_varnames) }
|
---|
| 92 | }
|
---|