diff options
Diffstat (limited to 'kernel.ld')
-rw-r--r-- | kernel.ld | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/kernel.ld b/kernel.ld new file mode 100644 index 000000000..9b7ddd6e0 --- /dev/null +++ b/kernel.ld @@ -0,0 +1,40 @@ +base_load_address = 0xfff00000; +text_load_address = 0xfff08000; +hreset_load_address = 0xfffffffc; + +SECTIONS +{ + . = base_load_address; + + .text.intvects ALIGN(0x1000): { + *(.text.intvects) + } + + . = text_load_address; + .text ALIGN(0x1000): { + *(.text) + *(.rodata) + *(.rodata.*) + } + + .data ALIGN(0x1000): { + *(.data) + *(.data.*) + *(.branch_lt) + *(.opd) + + *(.bss) + } + + . = hreset_load_address; + .text.hreset : { + *(.text.hreset) + } + + /DISCARD/ : { + *(.comment) + *(.gnu.attributes) + } +} + + |