Separated functionality into separate files. Added initial (untested) support for ARM.
This commit is contained in:
38
arch/i586-elf/linker.ld
Normal file
38
arch/i586-elf/linker.ld
Normal file
@@ -0,0 +1,38 @@
|
||||
/* Kernel entry point */
|
||||
ENTRY(_start)
|
||||
|
||||
/* Define the locations of the object file sections */
|
||||
SECTIONS
|
||||
{
|
||||
/* Sections begin at 1 MiB */
|
||||
. = 1M;
|
||||
|
||||
/* The multiboot header needs to come first, followed by program code */
|
||||
.text BLOCK(4K) : ALIGN(4K)
|
||||
{
|
||||
*(.multiboot)
|
||||
*(.text)
|
||||
}
|
||||
|
||||
/* Read-only data */
|
||||
.rodata BLOCK(4K) : ALIGN(4K)
|
||||
{
|
||||
*(.rodata)
|
||||
}
|
||||
|
||||
/* Initialized read-write data */
|
||||
.data BLOCK(4K) : ALIGN(4K)
|
||||
{
|
||||
*(.data)
|
||||
}
|
||||
|
||||
/* Uninitialized read-write data and stack */
|
||||
.bss BLOCK(4K) : ALIGN(4K)
|
||||
{
|
||||
*(COMMON)
|
||||
*(.bss)
|
||||
*(.bootstrap_stack)
|
||||
}
|
||||
|
||||
/* Add other sections here */
|
||||
}
|
||||
Reference in New Issue
Block a user