diff options
| author | Fabian Imhof <fabian.imhof@ost.ch> | 2024-10-26 08:47:26 +0000 |
|---|---|---|
| committer | Fabian Imhof <fabian.imhof@ost.ch> | 2024-10-26 08:47:26 +0000 |
| commit | bca36b0c10fcae447c90e211e83987fea28eecdc (patch) | |
| tree | 3fa0395bbe35bcba5462a94d8ff63e3abd8d8246 /arch/x86_64/scripts | |
| parent | 886c5e5ce7d1e6dd80d3782d5cf66bf474a6cddb (diff) | |
| download | teachos-bca36b0c10fcae447c90e211e83987fea28eecdc.tar.xz teachos-bca36b0c10fcae447c90e211e83987fea28eecdc.zip | |
wip
Diffstat (limited to 'arch/x86_64/scripts')
| -rw-r--r-- | arch/x86_64/scripts/kernel.ld | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/arch/x86_64/scripts/kernel.ld b/arch/x86_64/scripts/kernel.ld index e244ce1..3449828 100644 --- a/arch/x86_64/scripts/kernel.ld +++ b/arch/x86_64/scripts/kernel.ld @@ -59,13 +59,14 @@ SECTIONS *(.boot_stack) } + . = ALIGN(4K); + _end_of_image = .; + /*************************************************************************** * Now it is time to load the 64-bit kernel code. We virtually load it into * the upper 2GiB, while adjusting the linear load address appropriately. We * also make sure to align the loaded data onto a page boundary. ***************************************************************************/ - . = ALIGN(4K); - .init ALIGN(4K) : AT(ADDR (.init)) { /* @@ -126,9 +127,6 @@ SECTIONS *(.bss*) } - . = ALIGN(4K); - _end_of_image = .; - /*************************************************************************** * In accordance with the symbol definitions at the start, we generate some * symbols to mark the end of our loaded image. |
