22. November 2024, 22:48
BFD: Binary/stYJ2QrA: warning: allocated section `.text' not in segment
ENTRY(_start)SECTIONS{ . = 0x00100000; __kernel_start = .; .text : { code = .; *(.text) . = ALIGN(4096); } .rodata : { rodata = .; *(.rodata) . = ALIGN(4096); } .data : { data = .; *(.data) . = ALIGN(4096); } .bss : { bss = .; *(COMMON) *(.bss) . = ALIGN(4096); } __kernel_end = .;}
nasm -f elf -o Binary\asm\start.o Source\asm\start.asmgcc -c -fleading-underscore -Wall -ffreestanding -nostdlib -fno-builtin -nostdinc -I .\Source\include -o Binary\main.o .\Source\kernel.cld -o Binary\kernel.bin -T link.ld Binary/asm/start.o Binary/main.o