diff options
Diffstat (limited to 'tools/iso/kernel.soso/link.ld')
-rw-r--r-- | tools/iso/kernel.soso/link.ld | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/tools/iso/kernel.soso/link.ld b/tools/iso/kernel.soso/link.ld new file mode 100644 index 00000000..1787a976 --- /dev/null +++ b/tools/iso/kernel.soso/link.ld @@ -0,0 +1,34 @@ +ENTRY(_start) + +SECTIONS +{ + . = 1M; + + /* Code. */ + .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) + } + + _end = .; +} |