diff options
Diffstat (limited to 'arch/i386')
-rw-r--r-- | arch/i386/linker.ld | 19 | ||||
-rw-r--r-- | arch/i386/make.config | 6 |
2 files changed, 25 insertions, 0 deletions
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 \ |