mirror of
https://github.com/phil-opp/blog_os.git
synced 2025-12-16 14:27:49 +00:00
Merge multiboot section to .text section
All sections must be page aligned to set the right privileges, so we would many padding bytes otherwise.
This commit is contained in:
@@ -19,14 +19,9 @@ ENTRY(start)
|
||||
SECTIONS {
|
||||
. = 1M;
|
||||
|
||||
.boot :
|
||||
{
|
||||
.text : {
|
||||
/* ensure that the multiboot header is at the beginning */
|
||||
KEEP(*(.multiboot))
|
||||
}
|
||||
|
||||
.text :
|
||||
{
|
||||
*(.text .text.*)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user