From 22af367ab783fc579198d8b6eb4e0e4722a30517 Mon Sep 17 00:00:00 2001 From: Danny Holman Date: Sun, 17 Jan 2021 20:14:26 -0600 Subject: Initial commit Signed-off-by: Danny Holman --- arch/i386/linker.ld | 19 +++++++++++++++++++ arch/i386/make.config | 6 ++++++ 2 files changed, 25 insertions(+) create mode 100644 arch/i386/linker.ld create mode 100644 arch/i386/make.config (limited to 'arch') diff --git a/arch/i386/linker.ld b/arch/i386/linker.ld new file mode 100644 index 0000000..a864c34 --- /dev/null +++ b/arch/i386/linker.ld @@ -0,0 +1,19 @@ +ENTRY(_start) + +SECTIONS { + . = 1M; + .text BLOCK(4K) : ALIGN(4K) { + *(.multiboot) + *(.text) + } + .rodata BLOCK(4K) : ALIGN(4K) { + *(.rodata) + } + .data BLOCK(4K) : ALIGN(4K) { + *(.data) + } + .bss BLOCK(4K) : ALIGN(4K) { + *(COMMON) + *(.bss) + } +} diff --git a/arch/i386/make.config b/arch/i386/make.config new file mode 100644 index 0000000..a5049af --- /dev/null +++ b/arch/i386/make.config @@ -0,0 +1,6 @@ +KERNEL_ARCH_CFLAGS= +KERNEL_ARCH_LDFLAGS= +KERNEL_ARCH_LIBS= + +KERNEL_ARCH_OBJS=$(ARCHDIR)/boot.o \ + $(ARCHDIR)/tty.o \ -- cgit v1.2.3