lfn
serial
ticket/834-toolchain-update
topic/msim-upgrade
topic/simplify-dev-export
|
Last change
on this file since df6ded8 was 14febed9, checked in by Jakub Jermar <jakub@…>, 13 years ago |
|
Do not damage the YAMON image in SDRAM.
- Change loader and kernel link addresses so that we do not overwrite
the YAMON image in SDRAM.
- Ban the YAMON SDRAM range of physical memory from allocations.
|
-
Property mode
set to
100644
|
|
File size:
1.1 KB
|
| Line | |
|---|
| 1 | /*
|
|---|
| 2 | * MIPS32 linker script
|
|---|
| 3 | *
|
|---|
| 4 | * kernel text
|
|---|
| 5 | * kernel data
|
|---|
| 6 | *
|
|---|
| 7 | */
|
|---|
| 8 |
|
|---|
| 9 | #undef mips
|
|---|
| 10 | #define mips mips
|
|---|
| 11 |
|
|---|
| 12 | #if defined(MACHINE_msim)
|
|---|
| 13 | #define KERNEL_LOAD_ADDRESS 0x80100000
|
|---|
| 14 | #endif
|
|---|
| 15 |
|
|---|
| 16 | #if defined(MACHINE_lmalta) || defined(MACHINE_bmalta)
|
|---|
| 17 | #define KERNEL_LOAD_ADDRESS 0x80200000
|
|---|
| 18 | #endif
|
|---|
| 19 |
|
|---|
| 20 | OUTPUT_ARCH(mips)
|
|---|
| 21 | ENTRY(kernel_image_start)
|
|---|
| 22 |
|
|---|
| 23 | SECTIONS {
|
|---|
| 24 | . = KERNEL_LOAD_ADDRESS;
|
|---|
| 25 | .text : {
|
|---|
| 26 | ktext_start = .;
|
|---|
| 27 | *(.text);
|
|---|
| 28 | ktext_end = .;
|
|---|
| 29 | }
|
|---|
| 30 | .data : {
|
|---|
| 31 | kdata_start = .;
|
|---|
| 32 | *(.data); /* initialized data */
|
|---|
| 33 | hardcoded_ktext_size = .;
|
|---|
| 34 | LONG(ktext_end - ktext_start);
|
|---|
| 35 | hardcoded_kdata_size = .;
|
|---|
| 36 | LONG(kdata_end - kdata_start);
|
|---|
| 37 | hardcoded_load_address = .;
|
|---|
| 38 | LONG(KERNEL_LOAD_ADDRESS);
|
|---|
| 39 | *(.rodata*);
|
|---|
| 40 | *(.sdata);
|
|---|
| 41 | *(.reginfo);
|
|---|
| 42 | *(.sbss);
|
|---|
| 43 | *(.scommon);
|
|---|
| 44 | *(.bss); /* uninitialized static variables */
|
|---|
| 45 | *(COMMON); /* global variables */
|
|---|
| 46 | . = ALIGN(8);
|
|---|
| 47 | symbol_table = .;
|
|---|
| 48 | *(symtab.*);
|
|---|
| 49 | }
|
|---|
| 50 | _gp = . + 0x8000;
|
|---|
| 51 | .lit8 : { *(.lit8) }
|
|---|
| 52 | .lit4 : { *(.lit4) }
|
|---|
| 53 |
|
|---|
| 54 | kdata_end = .;
|
|---|
| 55 |
|
|---|
| 56 | /DISCARD/ : {
|
|---|
| 57 | *(.mdebug*);
|
|---|
| 58 | *(.pdr);
|
|---|
| 59 | *(.comment);
|
|---|
| 60 | *(.note);
|
|---|
| 61 | }
|
|---|
| 62 | }
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.