diff options
author | Ian McFarlane <i.mcfarlane2002@gmail.com> | 2025-04-22 14:51:47 -0400 |
---|---|---|
committer | Ian McFarlane <i.mcfarlane2002@gmail.com> | 2025-04-22 14:51:47 -0400 |
commit | 325e2ea9aef0723645b86bdc773f02293747c495 (patch) | |
tree | 2d844c3e30a27eaf463fed851620221f3ad7d540 /config/kernel.ld | |
parent | try to find mcfg (diff) | |
parent | force rebuild on header change (diff) | |
download | comus-325e2ea9aef0723645b86bdc773f02293747c495.tar.gz comus-325e2ea9aef0723645b86bdc773f02293747c495.tar.bz2 comus-325e2ea9aef0723645b86bdc773f02293747c495.zip |
Merge branch 'main' into pciepcie
Diffstat (limited to 'config/kernel.ld')
-rw-r--r-- | config/kernel.ld | 15 |
1 files changed, 11 insertions, 4 deletions
diff --git a/config/kernel.ld b/config/kernel.ld index bcacf61..8ac23e8 100644 --- a/config/kernel.ld +++ b/config/kernel.ld @@ -1,5 +1,12 @@ ENTRY(_start) +PHDRS +{ + text PT_LOAD; + rodata PT_LOAD; + data PT_LOAD; +} + SECTIONS { . = 1M; @@ -14,7 +21,7 @@ SECTIONS *(.text) *(.text.*) text_end = .; - } + } : text . = ALIGN(0x1000); @@ -23,7 +30,7 @@ SECTIONS *(.rodata) *(.rodata.*) rodata_end = .; - } + } : rodata . = ALIGN(0x1000); @@ -32,7 +39,7 @@ SECTIONS *(.data) *(.data.*) data_end = .; - } + } : data . = ALIGN(0x1000); @@ -42,7 +49,7 @@ SECTIONS *(.bss) *(.bss.*) bss_end = .; - } + } : data kernel_end = .; |