-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- use a linker script while building kernel - dump debug symbols in its own file - strip kernel of debug symbols to reduce size - add gdbinit to autoload commands
- Loading branch information
1 parent
aab0953
commit f452c04
Showing
6 changed files
with
13 additions
and
33 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
file kernel/kernel.sym | ||
target remote localhost:1234 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -41,3 +41,4 @@ bochs.out | |
# builds | ||
*.img | ||
*.bin | ||
*.sym |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,32 +1,5 @@ | ||
/* Link.ld -- Linker script for the kernel - ensure everything goes in the */ | ||
/* Correct place. */ | ||
/* Original file taken from Bran's Kernel Development */ | ||
/* tutorials: http://www.osdever.net/bkerndev/index.php. */ | ||
|
||
ENTRY(start) | ||
SECTIONS | ||
{ | ||
.text 0x100000 : | ||
{ | ||
code = .; _code = .; __code = .; | ||
*(.text) | ||
. = ALIGN(4096); | ||
} | ||
|
||
.data : | ||
{ | ||
data = .; _data = .; __data = .; | ||
*(.data) | ||
*(.rodata) | ||
. = ALIGN(4096); | ||
} | ||
|
||
.bss : | ||
{ | ||
bss = .; _bss = .; __bss = .; | ||
*(.bss) | ||
. = ALIGN(4096); | ||
} | ||
|
||
end = .; _end = .; __end = .; | ||
SECTIONS { | ||
. = 0x1000; | ||
.text : { * (.text); } | ||
} | ||
|