Hello user process

This commit is contained in:
2025-09-01 23:22:47 +02:00
parent 13ab117b1b
commit 2015e0e0aa
28 changed files with 744 additions and 65 deletions

26
user/arch/x86_64/link.ld Normal file
View File

@ -0,0 +1,26 @@
ENTRY(_start)
SECTIONS {
/* . = 0xffff000000000000; */
. = 0x0000000000000000;
.rodata ALIGN(4K):
{
*(.rodata .rodata.*)
}
.text ALIGN(4K):
{
*(.text .text.*)
}
.data ALIGN(4K):
{
*(.data .data.*)
}
.bss ALIGN(4K):
{
*(.bss .bss.*)
}
}

View File

@ -0,0 +1,22 @@
CC := x86_64-elf-gcc
LD := x86_64-elf-ld
CFLAGS += -m64 \
-fPIE \
-mno-80387 \
-mno-mmx \
-mno-sse \
-nostartfiles \
-nostdlib \
-mno-sse2 \
-mno-red-zone \
-fno-stack-protector \
-fno-stack-check \
-Os \
LDFLAGS += -m elf_x86_64 \
-pie \
--no-dynamic-linker \
-z text \
-z max-page-size=0x1000