Adding more of the cmake stuff and fixing the linkers

This commit is contained in:
2023-07-13 19:20:28 -07:00
parent 16b40a59ad
commit 3ffbc76f87
15 changed files with 2891 additions and 27 deletions

View File

@@ -1,8 +1,21 @@
ENTRY(boot)
SECTIONS {
. = 0x7c00;
.text : {
*(.text)
}
/* Add other sections as needed */
}
ENTRY(main)
SECTIONS {
. = 0x7c00;
.text : {
*(.text)
}
.rodata : {
*(.rodata)
}
.data : {
*(.data)
}
.bss : {
*(.bss)
}
}

8
src/linker.ld Normal file
View File

@@ -0,0 +1,8 @@
ENTRY(boot)
SECTIONS {
. = 0x7c00;
.text : {
*(.text)
}
/* Add other sections as needed */
}