|
Last change
on this file since 623 was 623, checked in by alain, 13 years ago |
|
Introducing the soft_hello_giet application.
|
|
File size:
1.8 KB
|
| Line | |
|---|
| 1 | /**********************************************************
|
|---|
| 2 | File : ldscript
|
|---|
| 3 | Author : Alain Greiner
|
|---|
| 4 | Date : January 2014
|
|---|
| 5 | **********************************************************/
|
|---|
| 6 |
|
|---|
| 7 | /* definition of the base address for all segments
|
|---|
| 8 | The peripherals base addresses are referenced by the
|
|---|
| 9 | software drivers and must be defined, even if the
|
|---|
| 10 | peripherals are not present in the architecture */
|
|---|
| 11 |
|
|---|
| 12 | seg_reset_base = 0x00000000; /* boot code */
|
|---|
| 13 |
|
|---|
| 14 | seg_kcode_base = 0x00010000; /* kernel code */
|
|---|
| 15 | seg_kdata_base = 0x00020000; /* kernel cacheable data */
|
|---|
| 16 | seg_kunc_base = 0x00030000; /* kernel uncacheable data */
|
|---|
| 17 |
|
|---|
| 18 | seg_code_base = 0x00040000; /* application code */
|
|---|
| 19 | seg_data_base = 0x00050000; /* application data */
|
|---|
| 20 |
|
|---|
| 21 | seg_heap_base = 0x00100000; /* heaps for application tasks */
|
|---|
| 22 | seg_stack_base = 0x00300000; /* stacks */
|
|---|
| 23 |
|
|---|
| 24 | seg_xcu_base = 0xF0000000; /* controler XCU */
|
|---|
| 25 | seg_tty_base = 0xF2000000; /* controler TTY */
|
|---|
| 26 | seg_fbf_base = 0xF3000000; /* controler FBF */
|
|---|
| 27 | seg_ioc_base = 0xF4000000; /* controler IOC */
|
|---|
| 28 | seg_mmc_base = 0xFF000000; /* config MMC */
|
|---|
| 29 |
|
|---|
| 30 |
|
|---|
| 31 | /* Grouping sections into segments */
|
|---|
| 32 |
|
|---|
| 33 | SECTIONS
|
|---|
| 34 | {
|
|---|
| 35 | . = seg_kcode_base;
|
|---|
| 36 | seg_kcode : {
|
|---|
| 37 | *(.giet)
|
|---|
| 38 | *(.switch)
|
|---|
| 39 | *(.drivers)
|
|---|
| 40 | *(.isr)
|
|---|
| 41 | }
|
|---|
| 42 | . = seg_kdata_base;
|
|---|
| 43 | seg_kdata : {
|
|---|
| 44 | *(.kdata)
|
|---|
| 45 | }
|
|---|
| 46 | . = seg_kunc_base;
|
|---|
| 47 | seg_kunc : {
|
|---|
| 48 | *(.unckdata)
|
|---|
| 49 | }
|
|---|
| 50 | . = seg_kdata_base;
|
|---|
| 51 | seg_kdata : {
|
|---|
| 52 | *(.ksave)
|
|---|
| 53 | }
|
|---|
| 54 | . = seg_code_base;
|
|---|
| 55 | seg_code : {
|
|---|
| 56 | *(.text)
|
|---|
| 57 | }
|
|---|
| 58 | . = seg_reset_base;
|
|---|
| 59 | seg_reset : {
|
|---|
| 60 | *(.reset)
|
|---|
| 61 | }
|
|---|
| 62 | . = seg_data_base;
|
|---|
| 63 | seg_data : {
|
|---|
| 64 | *(.rodata)
|
|---|
| 65 | . = ALIGN(4);
|
|---|
| 66 | *(.rodata.*)
|
|---|
| 67 | . = ALIGN(4);
|
|---|
| 68 | *(.data)
|
|---|
| 69 | . = ALIGN(4);
|
|---|
| 70 | *(.sdata)
|
|---|
| 71 | . = ALIGN(4);
|
|---|
| 72 | *(.bss)
|
|---|
| 73 | *(COMMON)
|
|---|
| 74 | *(.sbss)
|
|---|
| 75 | }
|
|---|
| 76 | }
|
|---|
| 77 |
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.