diff options
| author | EmulatedSeasons <89668582+EmulatedSeasons@users.noreply.github.com> | 2023-06-15 22:36:39 -0400 |
|---|---|---|
| committer | EmulatedSeasons <89668582+EmulatedSeasons@users.noreply.github.com> | 2023-06-15 22:36:39 -0400 |
| commit | a78033acc941fc4bcf6188f1d48fd8e012673fff (patch) | |
| tree | ac92adae5e40274fd9e0b78352a24840cc88eab4 /kernel/arch/i386/linker.ld | |
initial commit
Diffstat (limited to 'kernel/arch/i386/linker.ld')
| -rw-r--r-- | kernel/arch/i386/linker.ld | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/kernel/arch/i386/linker.ld b/kernel/arch/i386/linker.ld new file mode 100644 index 0000000..24cfa84 --- /dev/null +++ b/kernel/arch/i386/linker.ld @@ -0,0 +1,33 @@ +/* Excecution start point symbol */
+ENTRY(_start)
+
+SECTIONS
+{
+ . = 1M;
+
+ /* code. multiboot header comes first */
+ .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)
+ }
+}
\ No newline at end of file |
