diff options
| author | Alexey Gavrilov <alexey.gavrilov@mail.com> | 2025-12-17 14:13:08 +0700 |
|---|---|---|
| committer | Alexey Gavrilov <alexey.gavrilov@mail.com> | 2025-12-20 14:16:47 +0700 |
| commit | eb6a12e18d45879ec383921f0c7378120b71d159 (patch) | |
| tree | 1d6d6ed08f963c4bb9d48734f86504e6b9ca7139 /iso/boot/grub | |
| parent | e3e68862bbc731802efc39cbfb1b6df7ab255204 (diff) | |
Linker script rework
`memory.ld` is a architecture-dependent ld config provides some general
symbols which every `memory.ld` config must assign
and memory regions associated with each output section.
'linker.ld' config file presents segments configuration.
Multiboot section filling move in the 'linker.ld' file.
Recommendation for further patches: controlled logic implementation for multiboot
version and header/entries in build configuration tool (CMake or
make). For instance, multiboot version and video mode selection
through variable passing in build system:
`cmake ... -DMULTIBOOT_VERSION=2 -DMULTIBOOT_VIDEO_MODE=TEXT_VIDEO_MODE`
or
'export MULTIBOOT_VERSION=2; export MULTIBOOT_VIDEO_MODE=TEXT_VIDEO_MODE'.
Then build system do proper filling of `.multiboot` section depends
on passing variables.
Signed-off-by: Alexey Gavrilov <alexey.gavrilov@mail.com>
Diffstat (limited to 'iso/boot/grub')
0 files changed, 0 insertions, 0 deletions
