lfn
serial
ticket/834-toolchain-update
topic/msim-upgrade
topic/simplify-dev-export
Last change
on this file since 002fd5f was d639eaa, checked in by Martin Decky <martin@…>, 8 years ago |
riscv64: update linker script, kernel functionality up to scheduling
|
-
Property mode
set to
100644
|
File size:
895 bytes
|
Rev | Line | |
---|
[8b6aa39] | 1 | /*
|
---|
| 2 | * RISC-V 64 linker script
|
---|
| 3 | *
|
---|
| 4 | * kernel text
|
---|
| 5 | * kernel data
|
---|
| 6 | *
|
---|
| 7 | */
|
---|
| 8 |
|
---|
| 9 | OUTPUT_ARCH(riscv)
|
---|
| 10 | ENTRY(kernel_image_start)
|
---|
| 11 |
|
---|
| 12 | #include <arch/boot/boot.h>
|
---|
| 13 | #include <arch/mm/page.h>
|
---|
| 14 |
|
---|
| 15 | SECTIONS {
|
---|
[d639eaa] | 16 | .image (PA2KA(BOOT_OFFSET)) : AT (0) {
|
---|
[8b6aa39] | 17 | ktext_start = .;
|
---|
[d639eaa] | 18 | *(K_TEXT_START);
|
---|
[8b6aa39] | 19 | *(.text);
|
---|
| 20 | ktext_end = .;
|
---|
| 21 |
|
---|
| 22 | kdata_start = .;
|
---|
| 23 | *(.data); /* initialized data */
|
---|
| 24 | *(.rodata*);
|
---|
| 25 | hardcoded_load_address = .;
|
---|
| 26 | QUAD(PA2KA(BOOT_OFFSET));
|
---|
| 27 | hardcoded_ktext_size = .;
|
---|
[d639eaa] | 28 | QUAD(ktext_end - ktext_start);
|
---|
[8b6aa39] | 29 | hardcoded_kdata_size = .;
|
---|
[d639eaa] | 30 | QUAD(kdata_end - kdata_start);
|
---|
[8b6aa39] | 31 | *(.sdata);
|
---|
| 32 | *(.reginfo);
|
---|
| 33 | *(.sbss);
|
---|
| 34 | *(.scommon);
|
---|
| 35 | *(.bss); /* uninitialized static variables */
|
---|
| 36 | *(COMMON); /* global variables */
|
---|
| 37 | . = ALIGN(8);
|
---|
| 38 | symbol_table = .;
|
---|
| 39 | *(symtab.*);
|
---|
| 40 | kdata_end = .;
|
---|
| 41 | }
|
---|
| 42 |
|
---|
| 43 | /DISCARD/ : {
|
---|
| 44 | *(.mdebug*);
|
---|
| 45 | *(.pdr);
|
---|
| 46 | *(.comment);
|
---|
| 47 | *(.note);
|
---|
| 48 | }
|
---|
| 49 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.