Files
subhobhai943 6eaf9397a2 feat: Add freestanding C++17 OOP kernel subsystem and interactive Snake Game
- Add freestanding C++17 runtime with operator new/delete, pure virtual handlers, and global constructor execution in kernel/cpp/cxx_runtime.cpp
- Implement C++ Object-Oriented telemetry and hardware services with polymorphism in kernel/cpp/cpp_module.cpp and include/kernel/cpp_kernel.h
- Add interactive ANSI Snake Game in userland/lazybox/snake.c with real-time keyboard control and automated simulation mode
- Initialize C++ subsystem during kernel boot step [8/14] in kernel/main.c
- Add LazyBox applets: 'snake', 'cppinfo', and 'cpptest'
2026-08-18 21:14:16 +05:30

50 lines
830 B
Plaintext

ENTRY(kernel_entry)
SECTIONS
{
/* Kernel starts at 1MB */
. = 0x100000;
_kernel_start = .;
.text : ALIGN(4K)
{
*(.text*)
}
.rodata : ALIGN(4K)
{
*(.rodata*)
}
.init_array : ALIGN(4K)
{
PROVIDE(__init_array_start = .);
KEEP(*(SORT_BY_INIT_PRIORITY(.init_array.*) SORT_BY_INIT_PRIORITY(.ctors.*)))
KEEP(*(.init_array .ctors))
PROVIDE(__init_array_end = .);
}
.data : ALIGN(4K)
{
*(.data*)
}
.bss : ALIGN(4K)
{
PROVIDE(__bss_start = .);
*(COMMON)
*(.bss*)
PROVIDE(__bss_end = .);
}
.stack : ALIGN(4K)
{
PROVIDE(stack_bottom = .);
. += 0x10000; /* 64 KB Dedicated Kernel Stack */
PROVIDE(stack_top = .);
}
_kernel_end = .;
}