Skip to content

Commit

Permalink
fixed some errors
Browse files Browse the repository at this point in the history
  • Loading branch information
captain-n3m0 committed May 14, 2023
1 parent b474a45 commit 69cb97b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 13 deletions.
16 changes: 4 additions & 12 deletions Kernel16F.ld
Original file line number Diff line number Diff line change
@@ -1,33 +1,25 @@
ENTRY(_start)

SECTIONS {
/* Text section */
. = 0x1000;

.text : {
*(.text)
}

/* Read-only data section */
.rodata : {
*(.rodata)
}

/* Data section */
.data : {
*(.data)
}

/* BSS section */
.bss : {
*(.bss)
}

/* Stack section */
.stack : {
/* Set the stack pointer to the end of the memory region */
. = ORIGIN(memory) + LENGTH(memory);
*(.stack)
/DISCARD/ : {
*(.comment)
}

/* Memory region */
memory : ORIGIN = 0x1000, LENGTH = 0x3F000;
}
2 changes: 1 addition & 1 deletion makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
CC = gcc
LD = ld
CFLAGS = -m32 -ffreestanding -nostdlib -fno-builtin -fno-stack-protector -Wall -Wextra -Werror -Iinclude
LDFLAGS = -e _start
LDFLAGS = -arch x86_64 -e _start

# Source files
SRCS = Kernel16F.c display/display.c filesystem/filesystem.c disk_operations/disk.c memory_manager/mem_manager.c string/string.c process_manager/proc_man.c cli_interface/cli.c
Expand Down

0 comments on commit 69cb97b

Please sign in to comment.