forked from PoliEcho-holding-org/kern
- Kernel got pretty much deleted, will be rewriting in following days - Bootloader got rewritten, stage1 works, stage2 will be written in following days - Libc is still the same - User will contains userspace stuff - Rewrote makefiles again - Got rid of backup (see previous commits for that) - Image has 1 MBR partition for FAT32 which contains 'kern.bin' file - Remade info files to be more "big project" style (all caps plain text) - Added some dumb docs
53 lines
713 B
Plaintext
53 lines
713 B
Plaintext
OUTPUT_FORMAT(binary)
|
|
ENTRY(start)
|
|
|
|
SECTIONS {
|
|
. = 0x00100000;
|
|
kernel_start = .;
|
|
|
|
/* Multiboot Header */
|
|
.multiboot ALIGN(4K) : {
|
|
*(.multiboot)
|
|
}
|
|
|
|
.boot ALIGN(4K) : {
|
|
*(.boot)
|
|
}
|
|
|
|
. += 0xC000000;
|
|
|
|
/* Kernel Code */
|
|
.text ALIGN(4) : AT(ADDR(.text) - 0xC000000) {
|
|
*(.text)
|
|
*(.text.*)
|
|
}
|
|
|
|
/* Read-Only Data */
|
|
.rodata ALIGN(4) : AT(ADDR(.rodata) - 0xC000000) {
|
|
*(.rodata)
|
|
*(.rodata.*)
|
|
}
|
|
|
|
/* Read/Write Data */
|
|
.data ALIGN(4) : AT(ADDR(.data) - 0xC000000) {
|
|
*(.data)
|
|
*(.data.*)
|
|
}
|
|
|
|
/* BSS Section */
|
|
.bss ALIGN(4) : AT(ADDR(.bss) - 0xC000000) {
|
|
*(COMMON)
|
|
*(.bss)
|
|
*(.bss.*)
|
|
}
|
|
|
|
/* Discarded Sections */
|
|
/DISCARD/ : {
|
|
*(.note)
|
|
*(.note.*)
|
|
*(.comment)
|
|
}
|
|
|
|
kernel_end = .;
|
|
}
|