diff options
| author | Michal Idziorek <m.i@gmx.at> | 2015-05-25 13:04:41 +0200 |
|---|---|---|
| committer | Michal Idziorek <m.i@gmx.at> | 2015-05-25 13:04:41 +0200 |
| commit | 2c8cefb3a269d66a6a705bcb4912b0657379273c (patch) | |
| tree | 677ee15b87072e5ccd560f1be277abaf11b1ec28 /userspace/sys/linker.ld | |
| parent | 8ea3e244d44190e44a092ffb004e13ad94174c68 (diff) | |
fixed crt0.o for compiler toolchain (-lfool no more!)
Diffstat (limited to 'userspace/sys/linker.ld')
| -rw-r--r-- | userspace/sys/linker.ld | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/userspace/sys/linker.ld b/userspace/sys/linker.ld new file mode 100644 index 0000000..7c1c4bf --- /dev/null +++ b/userspace/sys/linker.ld @@ -0,0 +1,37 @@ +ENTRY(_start) + +SECTIONS +{ + . = 1M; + + kernel_start = .; + + .text BLOCK(4K) : ALIGN(4K) + { + *(.multiboot) + *(.text) + } + + /* Read-only data. */ + .rodata BLOCK(4K) : ALIGN(4K) + { + *(.rodata) + } + + /* Read-write data (initialized) */ + .data BLOCK(4K) : ALIGN(4K) + { + *(.data) + } + + /* Read-write data (uninitialized) and stack */ + .bss BLOCK(4K) : ALIGN(4K) + { + *(COMMON) + *(.bss) + *(.bootstrap_stack) + } + + kernel_end = .; + +} |
