mirror of
https://github.com/gbowne1/ClassicOS.git
synced 2025-10-14 05:35:06 -07:00
Adding more of the cmake stuff and fixing the linkers
This commit is contained in:
@@ -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
8
src/linker.ld
Normal file
@@ -0,0 +1,8 @@
|
||||
ENTRY(boot)
|
||||
SECTIONS {
|
||||
. = 0x7c00;
|
||||
.text : {
|
||||
*(.text)
|
||||
}
|
||||
/* Add other sections as needed */
|
||||
}
|
Reference in New Issue
Block a user